# Simple http request

**URL:** <https://discourse.nodered.org/t/simple-http-request/72517>\
**Category:** General\
**Created:** [21 December 2022 09:31 UTC](https://discourse.nodered.org/t/simple-http-request/72517 "2022-12-21T09:31:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elvisj007](https://avatars.discourse-cdn.com/v4/letter/e/71e660/32.png) [@elvisj007](https://discourse.nodered.org/u/elvisj007)\
**Post date:** [21 December 2022 09:31 UTC](https://discourse.nodered.org/t/simple-http-request/72517/1 "2022-12-21T09:31:27Z")

</div>

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

 ![node-http](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/4/a4569a12f852747fc0e5330046ce9b1160ab75c5.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 December 2022 09:49 UTC](https://discourse.nodered.org/t/simple-http-request/72517/2 "2022-12-21T09:49:03Z")

</div>

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`)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 February 2023 09:49 UTC](https://discourse.nodered.org/t/simple-http-request/72517/3 "2023-02-19T09:49:58Z")

</div>

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