HTTP request from local host to evolution api local host on docker

The problem/error/question
I want to set a node of evolution API (local hosted) using http request and this is the output error

What is the error message (if any)?

From HTTP Request

Error code

ECONNREFUSED

Full message

connect ECONNREFUSED ::1:8081

Request

{ "headers": { "content-type": "application/json", "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7" }, "method": "POST", "uri": "http://localhost:8081/manager/instance/30dbfc23-be37-4ad9-a116-87e5cfcb026c", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "encoding": null, "json": false, "useStream": true }

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

n8n Version 1.86.1

  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via Docker
  • **Operating system: windows

Are you also running Evolution API in Docker?

Yes I am, port 8081

Try sending requests to the url with the service/container name, which would be something likehttp://evolution-api:8080. Note that this is container-to-container within docker so it would use the actual listener port on the evolution-api service, not the externally mapped port where you would reach it from the docker host machine (8081?)