# Status node not seeming to work

**URL:** <https://discourse.nodered.org/t/status-node-not-seeming-to-work/59040>\
**Category:** General\
**Created:** [26 February 2022 21:18 UTC](https://discourse.nodered.org/t/status-node-not-seeming-to-work/59040 "2022-02-26T21:18:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 February 2022 21:18 UTC](https://discourse.nodered.org/t/status-node-not-seeming-to-work/59040/1 "2022-02-26T21:18:55Z")

</div>

I just posed - and redacted - a post on it. Yeah, I made a mistake.  
But fixing the mistake didn't fix the problem.

Ok, to state what I think/know.

the `status` node gets the status of all/some nodes and spits that out.

It is handy in subflows (my favourite just now) to show messages.

So why isn't this one working?

Case in point (subflow)

I inject a message, it is parsed and I get a `status` message.

![Screenshot from 2022-02-27 08-08-39](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/0/e0d94c27b167f3bf9f0413987cc2f1f124adde99.png)

This is what it looks like _behind the curtain_.

![Screenshot from 2022-02-27 08-09-16](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/2/62fa8e7aba11e7ef8eda7597771672bde76ec8da.png)

And the `status` node is looking at only that node.

So, new subflow.

![Screenshot from 2022-02-27 08-09-35](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/c/5c5d83ebd24ac53cca05d998ee6ec1697a273ae5.png)

(Keeping it simple)

I have another one who's message is only "counting". Both tested and the results are:

 ![Screenshot from 2022-02-27 08-10-12](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/46d1ae3b228dce5fd5e84560f507f4848a4b9f54.png)

and so I won't/can't show you what happens when this is in the subflow, as NOTHING is shown.

I must be really missing something for this to not work.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 February 2022 22:07 UTC](https://discourse.nodered.org/t/status-node-not-seeming-to-work/59040/2 "2022-02-26T22:07:43Z")

</div>

Just tried another example and it works.

```auto
[{"id":"545f8ed02a2a08b1","type":"subflow","name":"Subflow 2","info":"","in":[{"x":280,"y":180,"wires":[{"id":"5c344e54fc9709c7"}]}],"out":[],"status":{"x":510,"y":270,"wires":[{"id":"b92f16bb6210575f","port":0}]}},{"id":"5c344e54fc9709c7","type":"function","z":"545f8ed02a2a08b1","name":"","func":"//node.status({text: \"Counting \"});\nnode.status({text:\"Hello \" + msg.payload});\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":180,"wires":[[]]},{"id":"b92f16bb6210575f","type":"status","z":"545f8ed02a2a08b1","name":"","scope":null,"x":400,"y":270,"wires":[[]]},{"id":"3f741561b740ba61","type":"subflow:545f8ed02a2a08b1","z":"b25fd092.bcc758","name":"","x":4220,"y":1010,"wires":[]},{"id":"0e112e5b9df0a44c","type":"inject","z":"b25fd092.bcc758","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"there","payloadType":"str","x":4040,"y":1010,"wires":[["3f741561b740ba61"]]}]

```

So I really am not getting what is going on with the counting examples.

The `function` nodes happily show their status but the `status` node isn't _catching_ those messages.

I've tried reducing it to looking at only node, but still nothing other than `undefind` in the `debug` node.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [26 February 2022 22:12 UTC](https://discourse.nodered.org/t/status-node-not-seeming-to-work/59040/3 "2022-02-26T22:12:44Z")

</div>

Change the debug node to show the complete message.

You will see the status information is provided in `msg.status` not `msg.payload`. The sidebar help for the Status node should include that information.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 February 2022 22:15 UTC](https://discourse.nodered.org/t/status-node-not-seeming-to-work/59040/4 "2022-02-26T22:15:46Z")

</div>

Ok, thanks. I accept I kind of goofed at the flow level.

But what's going on in the subflows?

The node status's aren't being shown.

This is THE flow which I really want the `status` to work.  
There were other bugs - of course - but I am still not seeing the `count` status

```auto
[{"id":"4be6db179f2af0b9","type":"subflow","name":"Button count","info":"","category":"","in":[{"x":60,"y":330,"wires":[{"id":"a457eafcdad07d0b"}]}],"out":[{"x":870,"y":210,"wires":[{"id":"900cc4787c0480a4","port":0}]}],"env":[{"name":"delay","type":"num","value":"","ui":{"type":"input","opts":{"types":["num"]}}}],"meta":{},"color":"#DDAA99","status":{"x":870,"y":380,"wires":[{"id":"900476fafffa3ae3","port":0}]}},{"id":"c2137fa8aec03468","type":"inject","z":"4be6db179f2af0b9","name":"Reset","repeat":"","crontab":"","once":true,"onceDelay":"0.5","topic":"","payload":"","payloadType":"date","x":520,"y":290,"wires":[["5188ca7c92884164"]]},{"id":"1dd88ddf6873ae26","type":"delay","z":"4be6db179f2af0b9","name":"Delay","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":520,"y":250,"wires":[["5188ca7c92884164"]]},{"id":"de02a7b5bf7954d2","type":"trigger","z":"4be6db179f2af0b9","name":"","op1":"","op2":"0","op1type":"nul","op2type":"str","duration":"0.5","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":300,"y":250,"wires":[["a14dd5822f1f6015"]]},{"id":"5188ca7c92884164","type":"change","z":"4be6db179f2af0b9","name":"Reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"foo","tot":"str"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":250,"wires":[["d5314c210f7d9a76","ec32ccdde2dc0a7d"]]},{"id":"d5314c210f7d9a76","type":"counter","z":"4be6db179f2af0b9","name":"","init":"0","step":"1","lower":null,"upper":null,"mode":"increment","outputs":"1","x":670,"y":330,"wires":[["6a5f10e31345b897","bb0e17c295353204"]]},{"id":"6a5f10e31345b897","type":"change","z":"4be6db179f2af0b9","name":"Flow set","rules":[{"t":"set","p":"count","pt":"flow","to":"count","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":330,"wires":[[]]},{"id":"a457eafcdad07d0b","type":"change","z":"4be6db179f2af0b9","name":"","rules":[{"t":"set","p":"delay","pt":"msg","to":"delay","tot":"env"}],"action":"","property":"","from":"","to":"","reg":false,"x":145,"y":330,"wires":[["d5314c210f7d9a76","900cc4787c0480a4","de02a7b5bf7954d2"]],"l":false},{"id":"a14dd5822f1f6015","type":"change","z":"4be6db179f2af0b9","name":"","rules":[{"t":"delete","p":"delay","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":425,"y":250,"wires":[["1dd88ddf6873ae26"]],"l":false},{"id":"900cc4787c0480a4","type":"function","z":"4be6db179f2af0b9","name":"","func":"msg.payload = flow.get(\"count\");\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":290,"y":210,"wires":[[]]},{"id":"bb0e17c295353204","type":"function","z":"4be6db179f2af0b9","name":"Counter","func":"node.status({text: \"Counting \" + msg.count});\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":290,"y":380,"wires":[[]]},{"id":"900476fafffa3ae3","type":"status","z":"4be6db179f2af0b9","name":"","scope":["d5314c210f7d9a76","7982e91a4f7b71e4"],"x":670,"y":380,"wires":[[]]},{"id":"7982e91a4f7b71e4","type":"function","z":"4be6db179f2af0b9","name":"Statusx","func":"node.status({text: msg.payload});\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":850,"y":250,"wires":[[]]},{"id":"ec32ccdde2dc0a7d","type":"trigger","z":"4be6db179f2af0b9","name":"Status","op1":"Reset","op2":" ","op1type":"str","op2type":"str","duration":"2","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":755,"y":250,"wires":[["7982e91a4f7b71e4"]],"l":false},{"id":"f4d82258ab1dacf8","type":"subflow:4be6db179f2af0b9","z":"b25fd092.bcc758","name":"","env":[{"name":"delay","value":"400","type":"num"}],"x":4170,"y":490,"wires":[["c39072fc78f48cb4"]]},{"id":"3a4d3a97517dacea","type":"inject","z":"b25fd092.bcc758","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4010,"y":490,"wires":[["f4d82258ab1dacf8"]]},{"id":"c39072fc78f48cb4","type":"debug","z":"b25fd092.bcc758","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":4350,"y":490,"wires":[]}]

```

I am sorry for asking such a dumb question, but I seem to be missing something.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [27 February 2022 00:18 UTC](https://discourse.nodered.org/t/status-node-not-seeming-to-work/59040/5 "2022-02-27T00:18:08Z")

</div>

Kept bashing my head against the brick wall.

Fixed. (My mistake)

---

<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:** [13 March 2022 00:19 UTC](https://discourse.nodered.org/t/status-node-not-seeming-to-work/59040/6 "2022-03-13T00:19:00Z")

</div>

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