Please help me understand this error

I'll keep it brief:
I'm getting this error and can't find the person causing it.

{"topic":"ERROR_REPORT/TimePi/Telemetry","error":{"message":"ping: sendmsg: Network is unreachable\n  Please check that your service provider or network device has IPv6 enabled","source":{"id":"ee4b67f69783569a","type":"ping","name":"BedPi","count":1}},"_msgid":"7f99d026c88be02b","settings":{"input":"2022-12-08T19:52:41.082Z","input_format":"","input_tz":"Australia/Sydney","output_format":"YYYY-MM-DD HH:mm:ss","output_locale":"en_AU","output_tz":"Australia/Sydney"},"time":"2022-12-09 06:52:41","payload":{"message":"ping: sendmsg: Network is unreachable\n  Please check that your service provider or network device has IPv6 enabled","source":{"id":"ee4b67f69783569a","type":"ping","name":"BedPi","count":1}}}

Ok, other stuff to help you help me:
I suspect this is from a REMOTE machine. BedPi.
However: If I look on/in BedPi, there are no errors caught.
Hang on I'll check. :wink:
Well, none detectable by my routines.
I have a routine that catches errors and constructs a message telling me from which machine and from which flow the error came.
What has caught me is the PING nodes recently.
If the network goes down they spit their dummies and throw errors.
Which is fair enough, so what I have since done is put separate CATCH nodes for them and the output is just ignored.
The overwhelming CATCH node for the rest of the flow negates these nodes - correct?
ARGH!
Ok, I forgot to tick the magic box: Ignore errors handled by other Catch nodes
Ok. My fault.
But why aren't I given the correct/valid node-id?

Are you viewing the complete message from the catch note? It should have a property in there that identifies the source.

Alas no.

This is what my routine give me. :frowning:
The thing is that because I didn't tick that magic box the ping node is causing the error.
That is kind of shown in the message I get.
But (alas) there are a few of them on BedPi and when I go to the flow/s and look (before I ticked that box - which was done AFTER the error and my posting here now) none of my routines showed me any errors.

Not wanting to muddy the waters:
This is the front end of the error capture routine I have.
Given I have only included the important parts.
And yes, I got the message I posted further down the line than I am showing.
Which in itself is weird if none of the other routines (on each important TAB on BedPi) and handle their errors accordingly.

[{"id":"62be7566.4b4454","type":"subflow","name":"Error catch","info":"","category":"","in":[{"x":120,"y":250,"wires":[{"id":"1b99b8b4.ecf75f"}]}],"out":[{"x":1040,"y":280,"wires":[{"id":"a142130.032a0f","port":0}]},{"x":1040,"y":330,"wires":[{"id":"f632883f.7b7a28","port":0}]}],"env":[],"color":"#DD0000","outputLabels":["Error output","Overspeed alarm"],"icon":"node-red/alert.svg","status":{"x":1040,"y":390,"wires":[{"id":"101bf1bb.1f7d56","port":0}]}},{"id":"ab7353b2.d1b098","type":"msg-speed","z":"62be7566.4b4454","name":"Speed check","frequency":"sec","estimation":false,"ignore":false,"x":450,"y":330,"wires":[["c7fad2ac.ec77e"],[]]},{"id":"c7fad2ac.ec77e","type":"switch","z":"62be7566.4b4454","name":"> max_speed?","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"max_speed","vt":"global"}],"checkall":"true","repair":false,"outputs":1,"x":620,"y":330,"wires":[["f632883f.7b7a28"]]},{"id":"f632883f.7b7a28","type":"change","z":"62be7566.4b4454","name":"Stop","rules":[{"t":"set","p":"payload","pt":"msg","to":"stop","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"CONTROL","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":780,"y":330,"wires":[["a142130.032a0f","101bf1bb.1f7d56"]]},{"id":"a142130.032a0f","type":"gate","z":"62be7566.4b4454","name":"","controlTopic":"control","defaultState":"open","openCmd":"go","closeCmd":"stop","toggleCmd":"toggle","defaultCmd":"default","persist":false,"x":920,"y":280,"wires":[[]]},{"id":"45c23f97.247a68","type":"change","z":"62be7566.4b4454","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"error","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":280,"wires":[["d9bab478.78eb8"]]},{"id":"1b99b8b4.ecf75f","type":"switch","z":"62be7566.4b4454","name":"RESET?","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"RESET","vt":"str"},{"t":"neq","v":"RESET","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":240,"y":250,"wires":[["7eb12133.460c6"],["ab7353b2.d1b098","30576976.5a4d76"]]},{"id":"7eb12133.460c6","type":"change","z":"62be7566.4b4454","name":"Go","rules":[{"t":"set","p":"payload","pt":"msg","to":"go","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"CONTROL","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":430,"y":190,"wires":[["a142130.032a0f","101bf1bb.1f7d56"]]},{"id":"101bf1bb.1f7d56","type":"function","z":"62be7566.4b4454","name":"","func":"if (msg.payload == \"stop\")\n{\n    msg.payload = ({fill: \"red\",text:\"Overspeed\"});\n}\nif (msg.payload == \"go\")\n{\n    msg.payload = ({fill: \"green\",text:\"Good\"});\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":930,"y":390,"wires":[[]]},{"id":"dc4e7681.85bec8","type":"moment","z":"62be7566.4b4454","name":"","topic":"","input":"payload","inputType":"msg","inTz":"Australia/Sydney","adjAmount":0,"adjType":"days","adjDir":"add","format":"YYYY-MM-DD HH:mm:ss","locale":"en_AU","output":"payload","outputType":"msg","outTz":"Australia/Sydney","x":745,"y":230,"wires":[["b6239445.5a3bb"]],"l":false},{"id":"b6239445.5a3bb","type":"change","z":"62be7566.4b4454","name":"Time","rules":[{"t":"move","p":"payload","pt":"msg","to":"time","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":920,"y":230,"wires":[["b8ab3ac7.6b4788"]]},{"id":"30576976.5a4d76","type":"change","z":"62be7566.4b4454","name":"Save","rules":[{"t":"set","p":"payload","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":430,"y":230,"wires":[["372932c7.1c595e"]]},{"id":"b8ab3ac7.6b4788","type":"change","z":"62be7566.4b4454","name":"Get","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":430,"y":280,"wires":[["45c23f97.247a68"]]},{"id":"372932c7.1c595e","type":"change","z":"62be7566.4b4454","name":"TimeStamp","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":230,"wires":[["dc4e7681.85bec8"]]},{"id":"d9bab478.78eb8","type":"function","z":"62be7566.4b4454","name":"Get name/s","func":"//var flow_name = flow.get(\"$parent.name\");\n//return msg;\n\nvar device_name =global.get('myDeviceName');\nvar flow_name = flow.get(\"$parent.name\");\nmsg.topic =\"ERROR_REPORT/\" + device_name + \"/\" + flow_name;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":745,"y":280,"wires":[["a142130.032a0f"]],"l":false},{"id":"b7bfd394.e9304","type":"catch","z":"6dd5ca4d.d1958c","g":"54cd03526a7a6b5f","name":"","scope":null,"uncaught":true,"x":3790,"y":240,"wires":[["3cc1ea85.13f0be"]]},{"id":"3cc1ea85.13f0be","type":"subflow:62be7566.4b4454","z":"6dd5ca4d.d1958c","g":"54cd03526a7a6b5f","name":"","env":[],"x":3980,"y":260,"wires":[["9490c8a1.a6b71","4af1c910.28e998"],["b705280d.f0b64"]]},{"id":"4af1c910.28e998","type":"q-gate","z":"6dd5ca4d.d1958c","g":"54cd03526a7a6b5f","name":"qgate","controlTopic":"CONTROL","defaultState":"queueing","openCmd":"Go","closeCmd":"Stop","toggleCmd":"toggle","queueCmd":"queue","defaultCmd":"default","triggerCmd":"trigger","flushCmd":"flush","resetCmd":"reset","peekCmd":"","dropCmd":"","statusCmd":"","maxQueueLength":"50","keepNewest":true,"qToggle":false,"persist":false,"x":3970,"y":330,"wires":[["756a44a5.58e4ec"]]},{"id":"be24ce9.d0520b","type":"inject","z":"6dd5ca4d.d1958c","g":"54cd03526a7a6b5f","name":"Next","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"CONTROL","payload":"trigger","payloadType":"str","x":3780,"y":330,"wires":[["4af1c910.28e998"]],"icon":"node-red/trigger.svg"},{"id":"756a44a5.58e4ec","type":"debug","z":"6dd5ca4d.d1958c","g":"54cd03526a7a6b5f","name":"RealWorldControl error list","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":4230,"y":330,"wires":[]}]

Sorry, it may be a Dog's breakfast for anyone looking at it.
It was written a long time ago, but has been improved from the original version.
Given all the other stuff / things / variables are set like device_name etc.....
For other errors I get the correct details.
So I'm confused why this is failing as it does.
I can generate an error and post if you want to show it does work.

Ah, this is what I get if I generate an error from my test routine.

{"_msgid":"b235d1146721268d","topic":"ERROR_REPORT/BedPi/RealWorldControl","error":{"message":"ReferenceError: a is not defined (line 1, col 19)","source":{"id":"cd213560.943a7","type":"function","name":"This will throw an error","count":1}},"_error":{},"settings":{"input":"2022-12-09T08:30:48.055Z","input_format":"","input_tz":"Australia/Sydney","output_format":"YYYY-MM-DD HH:mm:ss","output_locale":"en_AU","output_tz":"Australia/Sydney"},"time":"2022-12-09 19:30:48","payload":{"message":"ReferenceError: a is not defined (line 1, col 19)","source":{"id":"cd213560.943a7","type":"function","name":"This will throw an error","count":1}},"_event":"node:2b6249a.ecd6cb6"}

you can see the source-id is valid.

FOUND IT!

(Sorry - but keeping you on the page wtih me)

It is a ping node. Not on BedPi. My mistake. BedPi is the NAME of the node.

This is the guy:

[{"id":"ee4b67f69783569a","type":"ping","z":"c636aa5a.cc34","protocol":"Automatic","mode":"triggered","name":"BedPi PING","host":"192.168.17.83","timer":"20","inputs":1,"x":365,"y":870,"wires":[["8ee1f5a6937fa88c"]],"l":false}]

So that caused the original error I posted.
Can you please help me understand why/how the node-id got corrupted.

Can you make the symptom happen again? If so then, as always, add debug nodes and track through what is happening till you find the problem.

I'll get around to it.
It is just it kind of threw a spanner in the works for me while doing something.

I did a quick test on a different machine and the node-id is/was correct.
So I shall have to look at that a bit more when I get a chance.
Just now it is more an annoyance than urgent needing resolution.

I was asking if this is/was a known thing.
But it seems the gremlins are back again.

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