I'd like to try to connect web-hooks to node-red (for instance when a new google form is submitted). For this, I tried to use the http in
node. I configured an URL /foo
(if it matters, I run node-red behind a nginx proxy with basic , but when I run curl -X POST "https://my-server/foo" -H 'Content-Type: application/json' -d '{"mymessage": "data"}'
, I get an error (in curl's terminal) Unauthorized
.
Am I doing anything wrong? Any idea how I could authorize any client to connect without password?
EDIT: oh wait, stupid me, I just enabled by mistake httpNodeAuth
. That being said, when I do a curl request, node-red receives the message, but curl stays open until it times out. Any idea why no answer is sent?
EDIT2: problem solved, just needed to connect a http out
node right after the http in
with a 202 status code. Problem solved!