Simple http request

I am trying to make a simple GET request to an API running in ubuntu container in my local system port 3000.

but my flow shows error ECONNREFUSED.
I am getting the response from my server when i hit the API url via my linux terminal

Is node-red running in the same container as the API?

You will possibly need to use the IP of the container running this API on port 3000.

Other issues...

  1. remove the HTTP-in -- HTTP-Response; that is for creating an API (for creating an endpoint that would be called by cURL for example)
  2. in the HTTP Request, enter a valid URL pointed to the API (e.g. http://xxxx/yyy/zzz)

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