# Sample 'http in' flow fails?

**URL:** <https://discourse.nodered.org/t/sample-http-in-flow-fails/84303>\
**Category:** General\
**Created:** [4 January 2024 22:08 UTC](https://discourse.nodered.org/t/sample-http-in-flow-fails/84303 "2024-01-04T22:08:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [4 January 2024 22:08 UTC](https://discourse.nodered.org/t/sample-http-in-flow-fails/84303/1 "2024-01-04T22:08:01Z")

</div>

Simple 'http in' flow fails?

I am trying to setup a very simple rest API in NR. Using the following example...

[https://cookbook.nodered.org/http/create-an-http-endpoint](https://cookbook.nodered.org/http/create-an-http-endpoint)

And when I do the following via curl in an SSH session on the node-red host...

```auto
# curl http://localhost:1880/hello
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /hello</pre>
</body>
</html>

```

I have tried using the actual ip address versus localhost, etc. Via a browser I simple cannot connect at all it seems. Neither https nor http URLs work.

What am I missing?

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [4 January 2024 22:22 UTC](https://discourse.nodered.org/t/sample-http-in-flow-fails/84303/2 "2024-01-04T22:22:49Z")

</div>

OK... it just started working... completely odd. Maybe the deploy had a hiccup! I tweaked the flow by adding an additional debug node, and re-deployed. That worked.

---

<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:** [18 January 2024 22:23 UTC](https://discourse.nodered.org/t/sample-http-in-flow-fails/84303/3 "2024-01-18T22:23:45Z")

</div>

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