particle-iot / node-red-contrib-particle-official

Official Node-RED Particle nodes
MIT License
12 stars 7 forks source link

Uncaught Exception after 502 from https://api.particle.io/v1/access_tokens/current #4

Open Achronite opened 2 years ago

Achronite commented 2 years ago

My node-red instance has just crashed with this error:

node-red-log:

Jul 30 05:08:05 pi3 Node-RED[11277]: Reauthenticating...
Jul 30 05:08:06 pi3 Node-RED[11277]: 30 Jul 05:08:06 - [red] Uncaught Exception:
Jul 30 05:08:06 pi3 Node-RED[11277]: 30 Jul 05:08:06 - [error] Error: HTTP error 502 from https://api.particle.io/v1/access_tokens/current
Jul 30 05:08:06 pi3 Node-RED[11277]:     at /home/pi/.node-red/node_modules/particle-api-js/lib/Agent.js:251:19
Jul 30 05:08:06 pi3 Node-RED[11277]:     at Request.callback (/home/pi/.node-red/node_modules/superagent/lib/node/index.js:893:3)
Jul 30 05:08:06 pi3 Node-RED[11277]:     at IncomingMessage.<anonymous> (/home/pi/.node-red/node_modules/superagent/lib/node/index.js:1114:20)
Jul 30 05:08:06 pi3 Node-RED[11277]:     at IncomingMessage.emit (node:events:538:35)
Jul 30 05:08:06 pi3 Node-RED[11277]:     at endReadableNT (node:internal/streams/readable:1345:12)
Jul 30 05:08:06 pi3 Node-RED[11277]:     at processTicksAndRejections (node:internal/process/task_queues:83:21)

@particle/node-red-contrib-particle-official: v0.1.7 node-red: v2.2.2