Error: ECONNREFUSED HTTP Request Node

I am making a call to my api, the code for which I have written using python and flask. However, I am getting the following error message despite my flask app running and on the port number that I have specified.

ERROR: The service refused the connection - perhaps it is offline

connect ECONNREFUSED 127.0.0.1:5000

NodeApiError: The service refused the connection - perhaps it is offline
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:1253:27)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:652:28)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:596:53

Please share your workflow


Can anyone help me out on this

Hi @Batman Welcome to the n8n community! :tada:

Please update your question with the following details.

  • Where you’re running n8n, Example: VPS, Locally
  • How you’re running n8n? Docker, NPM?
  • Is your API Hosted somewhere?
  • Does your API has a domain name?
1 Like

Thnaks @mcnaveen ! There was some issue with the npm install

1 Like

You’re welcome

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.