I am trying to connect my bot to an API located in local server instance.
Server is build on NodeJS and it’s URL that I connect is folllowing http://127.0.0.1:3333/auto
I am getting an error “Not found because of proxy error: Error: connect ECONNREFUSED 127.0.0.1:3333” on every type of request. Server is running as I can view it from the browser and call it using PostMan.
This might be happening because every API call from the ChatBot goes through a remote CORS proxy, which allows the API call to be made over Ajax, without having to configure the server to allow access for cross origin request.
In your case, when the server you are running is on a local machine, it cannot be called through this remote proxy.
So for this, do one thing. Add an extra field in the header of the API config called tarscorsproxy and set its value to no. Doing this will force the system to not use this CORS proxy and make the API call directly to the server. The config will look something like this:
Thanks for looking into my problem. It looks like it didn’t help. After this adjustment, I am getting a status 0 out of the call. I am assuming that is something you have implemented to stop user from using that option .
Can you explain how can I ping you on live chat. I don’t see such an option on the chat building app. I am a new user. This is my result of implementing this http header.