Closed shadowano closed 1 year ago
What version are you using?
I'm using
Hmm. I thought I had fixed that. Vould hou provide a flow with a minimum to reproduce it?
Hmm. I thought I had fixed that. Vould hou provide a flow with a minimum to reproduce it?
Try to change elvia url to something that gives you a 500 internal error. Elvia reported the error as solved. Edit: https://elvia.portal.azure-api.net/Issues
I just checked the Elvia code quickly (so I might have missed something), if server returns 500 then there is no Json returned. Wouldn't this line then fail? https://github.com/ottopaulsen/node-red-contrib-power-saver/blob/main/src/elvia/elvia-api.js#L41
You're right, it will fail.
I think this is at least better in version 4.0.0. Please try.
Thanks, i see you are checking for 500 error explicitly, shouldn't there be an else check on line 40 to catch all errors, and prevent node-red crash? Or at least check if json is valid before exception is thrown?
Btw, great work on all the nodes you have created! Keep it up:)
A fix is ready for next release.
I think this issue could be closed :)
This is a serious bug, causing Node-Red to crash everytime the node runs.
This is the log from Node-Rd in Home Assistant:
this is the respons when using Elvias test API for the same url:
Yes, Elvia has a server issue but the node is not recovering from it. This causes Node-Red to go down.