# Error 404 with http request to a static IP server with web browser

**URL:** <https://discourse.nodered.org/t/error-404-with-http-request-to-a-static-ip-server-with-web-browser/15191>\
**Category:** General\
**Created:** [6 September 2019 09:28 UTC](https://discourse.nodered.org/t/error-404-with-http-request-to-a-static-ip-server-with-web-browser/15191 "2019-09-06T09:28:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mattia](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@Mattia](https://discourse.nodered.org/u/Mattia)\
**Post date:** [6 September 2019 09:28 UTC](https://discourse.nodered.org/t/error-404-with-http-request-to-a-static-ip-server-with-web-browser/15191/1 "2019-09-06T09:28:46Z")

</div>

Hi there,  
I'm trying to make http request to a static IP server (web browser available); I'm having this reply  
"

## 404 Error
The requested resource cannot be found."

Do anyone already faced this reply and know how to deal with or why I get that?

Thanks for your help

Below my flow in the likely case I did a mistake!

[{"id":"a74bc371.77458","type":"http request","z":"4431ea1b.c72c54","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"[http://192.168.1.12/body.html","tls":"","proxy":"","authType":"","x":398.00000762939453,"y":105.00000190734863,"wires":[["7fb43890.d2ecb8](http://192.168.1.12/body.html%22,%22tls%22:%22%22,%22proxy%22:%22%22,%22authType%22:%22%22,%22x%22:398.00000762939453,%22y%22:105.00000190734863,%22wires%22:%5B%5B%227fb43890.d2ecb8)"]]}]

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [6 September 2019 09:58 UTC](https://discourse.nodered.org/t/error-404-with-http-request-to-a-static-ip-server-with-web-browser/15191/2 "2019-09-06T09:58:07Z")

</div>

What happens if, on the machine running node red, you put into a web browser the URL  
`http://192.168.1.12/body.html`

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [6 September 2019 13:51 UTC](https://discourse.nodered.org/t/error-404-with-http-request-to-a-static-ip-server-with-web-browser/15191/3 "2019-09-06T13:51:58Z")

</div>

The error is really clear that the endpoint cannot be found.

So "/body.html" is not reachable on the web server at 192.168.1.12 port 80.

The web server has responded so you have a network path to it.

---

<div class="post-metadata">

**Author:** ![Mattia](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@Mattia](https://discourse.nodered.org/u/Mattia)\
**Post date:** [11 September 2019 14:11 UTC](https://discourse.nodered.org/t/error-404-with-http-request-to-a-static-ip-server-with-web-browser/15191/4 "2019-09-11T14:11:46Z")

</div>

The photo below should replies both

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/0e894d82248ccb0c8ba482895c07cb2bd3bf0773.png)

if I tried to reach body.html via the flow below I get error:404; next step would be try this with other web browser server... but I'm still searching the reason why with this is not properly working.

[{"id":"4431ea1b.c72c54","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"a74bc371.77458","type":"http request","z":"4431ea1b.c72c54","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"[http://192.168.1.12/body.html","tls":"","proxy":"","authType":"","x":398.00000762939453,"y":105.00000190734863,"wires":[["7fb43890.d2ecb8"]]},{"id":"adfd18eb.b5b588","type":"debug","z":"4431ea1b.c72c54","name":"","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"payload","targetType":"msg","x":762.0000076293945,"y":105.00000190734863,"wires":[]},{"id":"7fb43890.d2ecb8","type":"ui\_template","z":"4431ea1b.c72c54","tab":"a3f85942.f52928","name":"","group":"","order":1,"format":"{{msg.payload}](http://192.168.1.12/body.html%22,%22tls%22:%22%22,%22proxy%22:%22%22,%22authType%22:%22%22,%22x%22:398.00000762939453,%22y%22:105.00000190734863,%22wires%22:%5B%5B%227fb43890.d2ecb8%22%5D%5D%7D,%7B%22id%22:%22adfd18eb.b5b588%22,%22type%22:%22debug%22,%22z%22:%224431ea1b.c72c54%22,%22name%22:%22%22,%22active%22:true,%22tosidebar%22:true,%22console%22:true,%22tostatus%22:false,%22complete%22:%22payload%22,%22targetType%22:%22msg%22,%22x%22:762.0000076293945,%22y%22:105.00000190734863,%22wires%22:%5B%5D%7D,%7B%22id%22:%227fb43890.d2ecb8%22,%22type%22:%22ui_template%22,%22z%22:%224431ea1b.c72c54%22,%22tab%22:%22a3f85942.f52928%22,%22name%22:%22%22,%22group%22:%22%22,%22order%22:1,%22format%22:%22%7B%7Bmsg.payload%7D)}","storeOutMessages":true,"fwdInMessages":true,"x":566.6000099182129,"y":104.78750228881836,"wires":[["adfd18eb.b5b588"]]},{"id":"364f1b4b.250474","type":"inject","z":"4431ea1b.c72c54","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":230.60000610351562,"y":106.00000190734863,"wires":[["a74bc371.77458"]]},{"id":"a3f85942.f52928","type":"ui\_tab","z":"","name":"Home","icon":"dashboard","order":"1"}]

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [11 September 2019 14:18 UTC](https://discourse.nodered.org/t/error-404-with-http-request-to-a-static-ip-server-with-web-browser/15191/5 "2019-09-11T14:18:47Z")

</div>

Unfortunately your flow isn't currently importable.Please read the following post [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506) and then edit the above message. ( moved to #general as this isn't sharing a completed project)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 September 2019 19:04 UTC](https://discourse.nodered.org/t/error-404-with-http-request-to-a-static-ip-server-with-web-browser/15191/6 "2019-09-11T19:04:52Z")

</div>

I think you will need to check the results from the browser again to see if the web page is checking for something hidden like a cookie or some kind of header.

Remember that a request from Node-RED is not as "intelligent" as a request from a browser which has lots of clever things built in to make life easy for users.
