Endpoints & callbacks

I've not had much experience with endpoints, but I'm trying to listen for a POST request, after creating an endpoint like this;


[{"id":"137645fc.bfb2ba","type":"debug","z":"9a54d43d.46e888","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":470,"y":840,"wires":[]},{"id":"ee886b3f.9827e8","type":"http in","z":"9a54d43d.46e888","name":"","url":"/receipt","method":"get","upload":false,"swaggerDoc":"","x":240,"y":840,"wires":[["8151fb.fd829e08","137645fc.bfb2ba"]]},{"id":"8151fb.fd829e08","type":"http response","z":"9a54d43d.46e888","name":"","statusCode":"","headers":{},"x":460,"y":780,"wires":[]}]

and have supplied the url as https://myserver.co.uk:2086/receipt

I'm assured from the originator that the Post request is being sent to that url, but nothing is ever received.

Have I done this correctly?

The 2086 port is open, and both the editor & dashboard can be accessed from outside my local network on the https://myserver.co.uk:2086 base url.
I have not added any security to the endpoints.

well you have configured it as GET.... but you said you wanted POST....

Oh dear! my rationale was that it they are sending the msg, they would 'Post'.
Whilst I wanted to receive it, so the node would be set to 'Get'.

Obviously wrong!

But yes if I set the node to Post, then I receive the msg OK.

1 Like

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