Sample 'http in' flow fails?

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

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

# 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?

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.

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