# Having a problem with getting a http endpoint to work

**URL:** <https://discourse.nodered.org/t/having-a-problem-with-getting-a-http-endpoint-to-work/73949>\
**Category:** General\
**Tags:** http-request\
**Created:** [20 January 2023 10:22 UTC](https://discourse.nodered.org/t/having-a-problem-with-getting-a-http-endpoint-to-work/73949 "2023-01-20T10:22:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gadget](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@gadget](https://discourse.nodered.org/u/gadget)\
**Post date:** [20 January 2023 10:22 UTC](https://discourse.nodered.org/t/having-a-problem-with-getting-a-http-endpoint-to-work/73949/1 "2023-01-20T10:22:48Z")

</div>

I created a http endpoint using the http in node (GET) with the url endpoint "/test". This works fine when accessed from a browser and returns the correct response via the http response node. (all this basically from the node-red cookbook).

 ![nr 1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/2/429b7dd13224ef68a227d9cd91f3b6c238542c3f.jpeg)

If I try to access the endpoint using a http request (POST) node with the endpoint URL ([http://xxx.xxx.x.xxx:1880/test](http://xxx.xxx.x.xxx:1880/test)) nothing appears on the http in node and I get an error from the request node saying "cannot post /test" and an error 404.

 ![nr 2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/b/2b0a3d14f1b3830b29dd9abeeaa4f4455511f39f.jpeg)

I must be doing something wrong but a search has not revealed anything to shed light on my error. BTW I'm trying to use the endpoint to receive alerts from Grafana. And although I don't believe it's relevant, NR is installed in a proxmox VM.

Thanks for any advice

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [20 January 2023 10:53 UTC](https://discourse.nodered.org/t/having-a-problem-with-getting-a-http-endpoint-to-work/73949/2 "2023-01-20T10:53:35Z")

</div>

The http endpoint is set to receive get requests, not post.  
if you want to receive both you will need two http-in nodes, one set to get and the other post.

---

<div class="post-metadata">

**Author:** ![gadget](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@gadget](https://discourse.nodered.org/u/gadget)\
**Post date:** [20 January 2023 11:07 UTC](https://discourse.nodered.org/t/having-a-problem-with-getting-a-http-endpoint-to-work/73949/3 "2023-01-20T11:07:59Z")

</div>

Doh! (Bangs head on desk).

I knew there had to be a simple solution. Thanks! 😆

---

<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:** [3 February 2023 11:08 UTC](https://discourse.nodered.org/t/having-a-problem-with-getting-a-http-endpoint-to-work/73949/4 "2023-02-03T11:08:47Z")

</div>

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