I had a flow set up with a device, and then later, removed this device from my homebridge configuration (had to purge it out of cachedAccessories). Node-RED then crashed (repeatedly) with this error:
May 18 10:19:19 raspberrypi Node-RED[16290]: 18 May 10:19:19 - TypeError: node.error is not a function
May 18 10:19:19 raspberrypi Node-RED[16290]: at hbConf.<anonymous> (/home/pi/.node-red/node_modules/node-red-contrib-homebridge-automation/HAP-NodeRed.js:874:16)
Simply commenting out line 874 worked and allowed me to fix the problem in my flow, but not sure what caused the exception, maybe node was null in this case?
Thx @NorthernMan54! It would be great if it was somehow listed in the debug pane (not sure if it's possible) so the user knows those nodes are no longer connected.
I had a flow set up with a device, and then later, removed this device from my homebridge configuration (had to purge it out of
cachedAccessories
). Node-RED then crashed (repeatedly) with this error:Simply commenting out line 874 worked and allowed me to fix the problem in my flow, but not sure what caused the exception, maybe node was null in this case?
Also, note that before this error, I saw these lines: