I added node-red-contrib-unofficial-sense to my Node-Red and configured it. Then Node-Red started to hard stop and restart every couple of minutes. I finally caught the issue in logs:
23 Jul 17:22:49 - [red] Uncaught Exception:
23 Jul 17:22:49 - [error] FetchError: invalid json response body at https://api.sense.com/apiservice/api/v1/app/monitors/39120/devices reason: Unexpected token < in JSON at position 0
at /config/node-red/node_modules/node-fetch/lib/index.js:273:32
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at /config/node-red/node_modules/unofficial-sense/index.js:70:42
[17:22:49] INFO: Service Node-RED exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
[17:22:49] INFO: Service NGINX exited with code 0 (by signal 0)
Is there a fix to this? Or trap it (I tried a Catch node)? When it crashes Node-Red ALL of the Flows stop.
Looking for any ideas …