Hi again.
Ok, today - this morning - I rebooted one of my machines.
I am getting the same vague error.
{"topic":"","payload":"go","_msgid":"a27c8451.d305d8","error":"go","time":"2020-1-25 07:33:48","ttl":0,"_queuetimestamp":1579898028962,"_queueCount":0}
This is the part of the flow which captures the error and a bit more which I thought - with the other machine - was the cause of the error.
Alas it isn't.
External required nodes:
node-red-contrib-fan node-red-contrib-simple-gate node-red-contrib-simple-message-queue
Screen shot:
(and explination)
Left to right:
Catch the error. Name the flow. Gate to stop messages if/when needed). Move msg.error to msg.payload. (FAN) Split flow. 1 - to local queue node (back to the left) 2 - get ready to send via MQTT. Another gate allowing errors to be kept local while testing. MQTT send.
Quickly back to #1. Time stamp the message and add it to queue.
The next and wipe buttons control the messages from the queue node to be displayed in the debug node.
Oh, you can see the error I just posted above in the debug column on the right of the screen.
So that message was displayed in the local readings error list debug node.
My ORIGINAL suspicion was that the GO(1) node (top line of nodes in about the middle) was the problem.
The gate node is set for the topic to be CONTROL. The inject node is sending control. (Lower case) I try to keep topics like that uppercase because .... well just to keep a standard.
The node injects a go after 1 second of booting/deployment.
Yeah, ok. I know. The node is set to default open (which means it allows messages to pass.
For the sake of checking, I pressed the STOP node - not shown here - and the gate node changed state. (It is on the screen grab)
The acid test was pressing the GO button and seeing if I get an error.
The gate changed and there is/was no error.
So to me the question remains: who generated this error?
This is the code:
[{"id":"b416af8c.231478","type":"catch","z":"675e227d.d158b4","name":"","scope":null,"x":3550,"y":310,"wires":[["a0c40b2c.3900a"]]},{"id":"a0c40b2c.3900a","type":"function","z":"675e227d.d158b4","name":"Name flow","func":"var device_name =global.get('myDeviceName');\nvar flow_name = flow.get('name');\nmsg.topic =\"ERROR_REPORT/\" + device_name + \"/\" + flow_name + \"/\" + msg.topic;\nreturn msg;","outputs":1,"noerr":0,"x":3700,"y":310,"wires":[["841acbda.0ae54","e782ee14.d63f08"]]},{"id":"e782ee14.d63f08","type":"gate","z":"675e227d.d158b4","name":"","controlTopic":"control","defaultState":"open","openCmd":"go","closeCmd":"stop","toggleCmd":"toggle","defaultCmd":"default","persist":false,"x":3890,"y":310,"wires":[["fbab1d7d.c9ba5"]]},{"id":"fbab1d7d.c9ba5","type":"change","z":"675e227d.d158b4","name":"","rules":[{"t":"set","p":"error","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":4115,"y":311,"wires":[["71a23f53.7e46a8"]]},{"id":"71a23f53.7e46a8","type":"fan","z":"675e227d.d158b4","x":4335,"y":310,"wires":[["610ba2c8.37e164","b664e555.9b8ef8","1c8fd235.c2c3ce","d87b4467.fe187"]]},{"id":"610ba2c8.37e164","type":"fan","z":"675e227d.d158b4","x":4500,"y":310,"wires":[["6b92a3f6.f002c4"]]},{"id":"6b92a3f6.f002c4","type":"gate","z":"675e227d.d158b4","name":"","controlTopic":"CONTROL","defaultState":"open","openCmd":"GO","closeCmd":"STOP","toggleCmd":"toggle","defaultCmd":"default","persist":false,"x":4640,"y":310,"wires":[["a66da046.dbc09","65e3d118.a54d08"]]},{"id":"454aa1a7.126448","type":"inject","z":"675e227d.d158b4","name":"Go","topic":"control","payload":"GO","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"3","x":4330,"y":270,"wires":[["610ba2c8.37e164","66cff3f0.59f8dc"]]},{"id":"1c8fd235.c2c3ce","type":"function","z":"675e227d.d158b4","name":"Time stamp","func":"msg.time = new Date().toLocaleString();\nreturn msg;","outputs":1,"noerr":0,"x":3700,"y":360,"wires":[["8cc00760.5d3c2"]]},{"id":"8cc00760.5d3c2","type":"simple-queue","z":"675e227d.d158b4","name":"queue1","firstMessageBypass":false,"bypassInterval":"0","x":3895,"y":361,"wires":[["600e4c9e.063f0c"]]},{"id":"600e4c9e.063f0c","type":"debug","z":"675e227d.d158b4","name":"Local Readings error list","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":4125,"y":361,"wires":[]},{"id":"bf4463e5.7fe6b8","type":"inject","z":"675e227d.d158b4","name":"Read","topic":"","payload":" ","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":"","x":3555,"y":400,"wires":[["7cd91921.194678"]]},{"id":"7cd91921.194678","type":"change","z":"675e227d.d158b4","name":"Read","rules":[{"t":"set","p":"trigger","pt":"msg","to":"1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":3685,"y":400,"wires":[["8cc00760.5d3c2"]]},{"id":"c7530652.e9b6d","type":"change","z":"675e227d.d158b4","name":"Wipe","rules":[{"t":"set","p":"reset","pt":"msg","to":"1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":3685,"y":440,"wires":[["8cc00760.5d3c2"]]},{"id":"804d7e70.a33be","type":"inject","z":"675e227d.d158b4","name":"Wipe","topic":"","payload":" ","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":"","x":3555,"y":440,"wires":[["c7530652.e9b6d"]]}]