[red] Uncaught Exception

204 views
Skip to first unread message

fluri...@gmail.com

unread,
Jan 24, 2017, 5:06:41 AM1/24/17
to Node-RED
Hi,

I'm using node-red-contrib-netatmo-dashboard, generally it works but sometimes NR crashes.

20 Jan 17:12:04 - [red] Uncaught Exception:
20 Jan 17:12:04 - Error: Authenticate error: Status code502
at netatmo.handleRequestError (/home/pi/.node-red/node_modules/netatmo/netatmo.js:46:15)
at .<anonymous> (/home/pi/.node-red/node_modules/netatmo/netatmo.js:115:19)
at Request.self.callback (/home/pi/.node-red/node_modules/request/request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (/home/pi/.node-red/node_modules/request/request.js:1081:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (/home/pi/.node-red/node_modules/request/request.js:1001:12)
at IncomingMessage.g (events.js:286:16)
nodered.service: main process exited, code=exited, status=1/FAILURE
Unit nodered.service entered failed state.
nodered.service holdoff time over, scheduling restart.
Stopping Node-RED graphical event wiring tool....
Starting Node-RED graphical event wiring tool....
Started Node-RED graphical event wiring tool..
20 Jan 17:12:10 - [info]
Welcome to Node-RED
===================
20 Jan 17:12:10 - [info] Node-RED version: v0.16.1
20 Jan 17:12:10 - [info] Node.js  version: v6.3.1
20 Jan 17:12:10 - [info] Linux 4.4.13-v7+ arm LE


Is there a way to catch this error in NR?

Nick O'Leary

unread,
Jan 24, 2017, 5:11:07 AM1/24/17
to Node-RED Mailing List
No, this is an issue with the netatmo-dashboard node not handling the error. We cannot swallow errors in node-red like this and hope that everything continues to work.

I suggest you raise an issue against that node so they are aware of it.

Nick

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/e0827c74-9cea-440e-b778-ba48e14ca21d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

fluri...@gmail.com

unread,
Jan 24, 2017, 5:29:19 AM1/24/17
to Node-RED
Thanks for the quick reply. I've already raised an issue: https://github.com/guidone/node-red-contrib-netatmo-dashboard/issues/4. Let's see if they can find a solution.

fluri...@gmail.com

unread,
Jan 24, 2017, 10:46:32 AM1/24/17
to Node-RED
Update: I'm testing a modification. If it works for a couple of days, I'll upload a PR.
Reply all
Reply to author
Forward
0 new messages