How to handle ETIMEDOUT in Node-RED

Once in a while I get a ETIMEDOUT error on a flow that using the http request node (to fetch some values) and the websocket out node (to switch a thing).
Sometimes the websocket out node seems to work (can switch the light on or off) but it can not get a value (gives an ETIMEDOUT)
At the same time is the webpage (from that thing that is called with this flow) working on the browser from a PC or phone without any visible problem (even the console doesn't give a warning or error) but not on Node-RED (of-course also not working on the dashboard).
Only Node-RED (running on a Raspberry Pi) keep giving this error. The only thing that seems to work is restarting Node-RED!
If requested server is unreachable then node process dies but it looks that it is only unreachable for Node-RED!

[{"id":"258daedd.94c302","type":"tab","label":"LOL03","disabled":false,"info":""},{"id":"9a618caa.d4998","type":"inject","z":"258daedd.94c302","name":"","topic":"","payload":"","payloadType":"str","repeat":"10","crontab":"","once":true,"onceDelay":"","x":150,"y":140,"wires":[["22962ccf.5c78a4","e54acc2f.342848"]]},{"id":"22962ccf.5c78a4","type":"http request","z":"258daedd.94c302","name":"get current state","method":"GET","ret":"txt","url":"lol03.local/current_state","tls":"","x":330,"y":200,"wires":[["22918ca6.3538d4","359c7c05.be1b2c"]]},{"id":"22918ca6.3538d4","type":"debug","z":"258daedd.94c302","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":530,"y":280,"wires":[]},{"id":"e54acc2f.342848","type":"http request","z":"258daedd.94c302","name":"get current color","method":"GET","ret":"txt","url":"lol03.local/current_color","tls":"","x":330,"y":140,"wires":[["ffbd433.1f34d4","d57ae60f.196a68","34d248ab.bd43d"]]},{"id":"ffbd433.1f34d4","type":"debug","z":"258daedd.94c302","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":530,"y":60,"wires":[]},{"id":"34d248ab.bd43d","type":"ui_button","z":"258daedd.94c302","name":"","group":"11144b0a.ef7965","order":1,"width":"3","height":"1","passthru":false,"label":"Power","color":"","bgcolor":"{{msg.payload}}","icon":"","payload":"@2","payloadType":"str","topic":"","x":770,"y":100,"wires":[["36c8b72a.0f63a8"]]},{"id":"417042b0.a68144","type":"ui_text","z":"258daedd.94c302","group":"11144b0a.ef7965","order":2,"width":"1","height":"1","name":"indicator","label":"","format":"<font color={{msg.payload}} ><i class=\"fa fa-lightbulb-o fa-2x\" style=\"font-size:48px;\"></i></font>","layout":"row-spread","x":760,"y":260,"wires":[]},{"id":"359c7c05.be1b2c","type":"change","z":"258daedd.94c302","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"Off","fromt":"str","to":"grey","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"On","fromt":"str","to":"yellow","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":240,"wires":[["417042b0.a68144"]]},{"id":"c7d5394.90d40c8","type":"ui_colour_picker","z":"258daedd.94c302","name":"","label":"","group":"11144b0a.ef7965","format":"hex","outformat":"string","showSwatch":true,"showPicker":true,"showValue":true,"showHue":false,"showAlpha":false,"showLightness":true,"dynOutput":"false","order":4,"width":"1","height":"1","passthru":true,"topic":"","x":750,"y":140,"wires":[["5d32c1ac.6dade"]]},{"id":"d57ae60f.196a68","type":"ui_text","z":"258daedd.94c302","group":"11144b0a.ef7965","order":3,"width":"3","height":"1","name":"","label":"","format":"{{msg.payload}}","layout":"col-center","x":770,"y":200,"wires":[]},{"id":"13ec76e7.9bd199","type":"debug","z":"258daedd.94c302","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1010,"y":220,"wires":[]},{"id":"36c8b72a.0f63a8","type":"websocket out","z":"258daedd.94c302","name":"","server":"","client":"9d09816e.09ed58","x":1020,"y":60,"wires":[]},{"id":"f6fa207e.d66578","type":"ui_dropdown","z":"258daedd.94c302","name":"","label":"","place":"Select option","group":"11144b0a.ef7965","order":0,"width":"4","height":"1","passthru":true,"options":[{"label":"red","value":"#ff0000","type":"str"},{"label":"green","value":"#00ff00","type":"str"},{"label":"blue","value":"#0000ff","type":"str"},{"label":"magenta","value":"#ff00ff","type":"str"},{"label":"yellow","value":"#ffff00","type":"str"},{"label":"cyaan","value":"#00ffff","type":"str"},{"label":"white","value":"#ffffff","type":"str"},{"label":"black","value":"#000000","type":"str"},{"label":"default","value":"#808080","type":"str"},{"label":"nice one","value":"#444800","type":"str"},{"label":"Aineke's choice","value":"#727f1e","type":"str"},{"label":"Sun set","value":"#1c0800","type":"str"}],"payload":"","topic":"","x":760,"y":40,"wires":[["36c8b72a.0f63a8"]]},{"id":"5d32c1ac.6dade","type":"change","z":"258daedd.94c302","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"\"#\"&payload","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":140,"wires":[["36c8b72a.0f63a8","13ec76e7.9bd199"]]},{"id":"11144b0a.ef7965","type":"ui_group","z":"","name":"LOL03","tab":"4cbb5257.8f207c","disp":true,"width":"4","collapse":false},{"id":"9d09816e.09ed58","type":"websocket-client","z":"","path":"ws://lol03.local:81/","tls":"","wholemsg":"false"},{"id":"4cbb5257.8f207c","type":"ui_tab","z":"","name":"LOL","icon":"dashboard"}]


Wondering if there is a way to catch the error?

Maybe the catch node ?

Thanks for the idea. No idea, yet, how this catch node work but I go looking in to it. Thanks again.