Strapi self-host api perhaps it is offline

Describe the problem/error/question

i try to connect localhost api that run with node and its error perharp its offline
its happend to strapi and http node

What is the error message (if any)?

Problem in node ‘HTTP Request‘

The service refused the connection - perhaps it is offline

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:1.88.0
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via ( n8n cloud):
  • **Operating system:macos

I dont think what you are trying to do is possible. you are using n8n cloud and you want n8n to access your local machines API (localhost) but that’s not possible. either you host this API publicly so that n8n can access or use n8n locally so that it can access localhost

how about i run n8n localhost:5678 and api localhost:1337 and its still can’t

Yes that should work. First check with tools like postman whether you are calling the api correctly. Sometimes firewall rules can also prevent accessing localhost. In that case you would face issues with both n8n local and your endpoint

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