node-red / node-red-nodes

Extra nodes for Node-RED
Other
967 stars 593 forks source link

ECONNREFUSED connection nodered to strapi #978

Open kevinpetroni opened 1 year ago

kevinpetroni commented 1 year ago

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

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

image

My node red version is 3.0.2 Strapi version is 4.6.1

To make a test, I'm not use any authentication

I hope you help me :D

knolleary commented 1 year ago

Hi @kevinpetroni

The issue templates we provide asks for general how-to questions get asked on the forum (discourse.nodered.org) where the full user community can help, rather than rely on the core contributors.

Where exactly is Node-RED running? The fact you are using the ip address in Node-RED, but localhost in insomnia suggests they are not both running on the same device.

Does the device running Node-RED have access to that up address?

kevinpetroni commented 1 year ago

Thanks! I will aks for this problem on the forum.

So, yes, Node red and Insomnia it's running in the same device. I'm using my node red on docker, if i put my local ip´ou localhost the result is the same.

hardillb commented 1 year ago

localhost when running in a container points to the container, not the machine that is hosting the container.

kevinpetroni commented 1 year ago

I know, but have no diference, if I use IP, I have the same error

image