# HTTP node does not work

**URL:** <https://discourse.nodered.org/t/http-node-does-not-work/79755>\
**Category:** General\
**Tags:** http-request\
**Created:** [12 July 2023 11:14 UTC](https://discourse.nodered.org/t/http-node-does-not-work/79755 "2023-07-12T11:14:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![domi](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@domi](https://discourse.nodered.org/u/domi)\
**Post date:** [12 July 2023 11:14 UTC](https://discourse.nodered.org/t/http-node-does-not-work/79755/1 "2023-07-12T11:14:43Z")

</div>

Hello  
with postman, the HTTP GET at the URL

> Blockquote [swisshydroapi.bouni.de/api/v1/station/2004](http://swisshydroapi.bouni.de/api/v1/station/2004)

work fine, the result ist the level of the lake murten.

If i use the HTTP node wir GET, the answer ist always:  
"405" method not allowed.

Wy the HTTP node does not work ?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [12 July 2023 11:19 UTC](https://discourse.nodered.org/t/http-node-does-not-work/79755/2 "2023-07-12T11:19:47Z")

</div>

A simple Inject-\>HTTP Request-\>Debug flow getting that URL is working okay for me:

```auto
[{"id":"a3e45e137ec4cc13","type":"inject","z":"ea620193689ffefb","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":480,"wires":[["d6a98811197c4205"]]},{"id":"d6a98811197c4205","type":"http request","z":"ea620193689ffefb","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://swisshydroapi.bouni.de/api/v1/station/2004","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":310,"y":480,"wires":[["970e5eba2fa244db"]]},{"id":"970e5eba2fa244db","type":"debug","z":"ea620193689ffefb","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":480,"y":480,"wires":[]}]

```

The '405' response is curious. Can you share an example flow that isn't working for you so we can see how exactly you have it configured?

---

<div class="post-metadata">

**Author:** ![domi](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@domi](https://discourse.nodered.org/u/domi)\
**Post date:** [12 July 2023 11:32 UTC](https://discourse.nodered.org/t/http-node-does-not-work/79755/3 "2023-07-12T11:32:29Z")

</div>

thx !  
it was my fault, i used PUT and not GET, and 405 is the answer of PUT and this ist not allowed.  
You try was helping me to check every thing again 😉

---

<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:** [26 July 2023 11:33 UTC](https://discourse.nodered.org/t/http-node-does-not-work/79755/4 "2023-07-26T11:33:05Z")

</div>

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