Closed PatrickM2201 closed 10 months ago
I have come across the same class of error numerous times at work, and the fact it gets a <
means that the server has responded with HTML instead of JSON, and died parsing it. If I was to guess, the server probably had an internal error and gave a error 500 type page. As you say this was transitory and worked again later, the server probably was fine at other times - so it could have been excess load on the server, maintenance, or any number of things that meant it didn't work as intended.
Sounds like the return code of the page should be checked before parsing, or at least catching the exception and stopping
I will maybe pick it up in the next versions
I am running the node (Version 1.4.1) on a node-red Version v3.0.2. Since some time an uncaught exception of the this node causes node-red to crash.
In the syslog I find the following entries (account entry behind /accounts/ I replaced with xxx:
After the restart data is provided again without any problems. I did not recognized any cause of the invalid json response (e.g. loss of internet connection).
If you need further information, I will try to collect them.