Hello, I'm having a problem with the node red, when I will inject post in http to the strapi, I get a error: RequestError: connect ECONNREFUSED localhost:1337

Hello, I'm having a problem with the node red, when I will inject post in http to the strapi, I get a error: RequestError: connect ECONNREFUSED localhost:1337.

image

Note: I put my local ip to get, but if i put localhost I have the same result

When I "GET in Insomnia", I get the results

image

My node red version is 3.0.2
Strapi version is 4.6.1
My node red is running on docker
To make a test, I'm not use any authentication

I hope you help me :smiley:

And where is "the strapi" running ?
The docker container is not "localhost", use the ip instead.

Strapi is running in a command line on my terminal, cause the strapi latest version of docker-compose is old, I use my ip to make a GET but don't work too, shom me the same message.

If it showed you the same message then you did not use the ip, since the message said it could not connect to localhost. Tell us the ip addresses of the various components in your system and show us the actual error message.

Also show us it working in Insomnia using that IP.

Also open a shell inside the docker container and check you can ping that ip.

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