Help for a newbie

So i have what i consider to be a very simple situation....
I want to receive data through an http request....try and send it out, and if for some reason it fails, queue so i can send it later. So i thought it made sense to use the node-red-contrib-msg-queue.

The only way i can figure to get it to work is to consider it disconnected when it doesn't get a 200 back?

it doesnt appear to work though....

here is my data


Additionally i also have a very simple flow i built to receive and reply to the messages...

[{"id":"dace88dd.8b8a68","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"b9d0f067.81a31","type":"http in","z":"dace88dd.8b8a68","name":"","url":"/test3","method":"get","upload":false,"swaggerDoc":"","x":160,"y":180,"wires":[["144940c8.ee412f","33ff2f06.b4709"]]},{"id":"144940c8.ee412f","type":"debug","z":"dace88dd.8b8a68","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":310,"y":100,"wires":},{"id":"33ff2f06.b4709","type":"http response","z":"dace88dd.8b8a68","name":"","statusCode":"200","headers":{"data":"Larry"},"x":350,"y":240,"wires":}]

Any assistance would be greatly appreciated...i am just stumped....


Welcome to the forum Larry! A couple things:

When you want to paste a flow into a thread click the </> in the icon bar
Screen Shot 2020-03-17 at 5.21.19 AM
otherwise you flow will not import. This is what your flow looks like imported correctly:

[{"id":"dace88dd.8b8a68","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"b9d0f067.81a31","type":"http in","z":"dace88dd.8b8a68","name":"","url":"/test3","method":"get","upload":false,"swaggerDoc":"","x":160,"y":180,"wires":[["144940c8.ee412f","33ff2f06.b4709"]]},{"id":"144940c8.ee412f","type":"debug","z":"dace88dd.8b8a68","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":310,"y":100,"wires":[]},{"id":"33ff2f06.b4709","type":"http response","z":"dace88dd.8b8a68","name":"","statusCode":"200","headers":{"data":"Larry"},"x":350,"y":240,"wires":[]}]

Second There are some great examples in the Cookbook showing HTTP Requests vrs HTTP Endpoints. If you try some examples I think it will start you down the path you want.

Your first goal is to determine what the response code is, so stick a debug (set to display the 'Complete msg object' node after the node you use and see what you can fine.

let us know how you make out and ask questions if you are still stumped.

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