Open carsten-re opened 2 years ago
Same here. It's caused NodeRED crashes on multiple of my installations. All at the same time ;-) So it must be caused by some serverside changes or issues (DWD) There is maybe some fix needed here, currently i had to delete all nodes.
As an emergency measure, I edited line 92 in /home/pi/.node-red/node_modules/node-red-contrib-dwd-local-weather/dwdweather.js, like:
} else {
reject("INVALD");
//reject(response.status + " " + response.statusText);
};
(That is line 91 - 94 on my nodered installation.)
Still no DWD data, but at least nodered does not crash, anymore.
...So it must be caused by some serverside changes or issues (DWD) There is maybe some fix needed here, currently i had to delete all nodes. Yeah, looks promising that that's the case. On this page (https://www.dwd.de/DE/leistungen/met_verfahren_mosmix/met_verfahren_mosmix.html) is a link that point to the Open Data Server. And that certificate expired yesterday at Sun, 08 May 2022 14:03:12 GMT.
The certificate on https://opendata.dwd.de/ is now replaced and the SSL issue is gone. NodeRed is able to get the values.
But it should be catched and not cause a system to crash...
Ok, I have re-opened the issue. Let's see if it could be fixed.
Ok, I have re-opened the issue. Let's see if it could be fixed.
In doubt some ugly try catch block should do it.
This is the uncatched error:
May 8 16:14:49 friday Node-RED[4198]: 8 May 16:14:49 - [red] Uncaught Exception:
May 8 16:14:49 friday Node-RED[4198]: 8 May 16:14:49 - [error] ReferenceError: response is not defined
May 8 16:14:49 friday Node-RED[4198]: at /home/user/.node-red/node_modules/node-red-contrib-dwd-local-weather/dwdweather.js:92:28
May 8 16:14:49 friday Node-RED[4198]: at runMicrotasks (
Edit: Ok I looked into it, it is just that a response never will be defined in the catch part. That has to be fixed. forstran58 already showed kind of the right solution.
Thanks for the error report, detailed analysis and suggested fix. I agree that the error handling needs to be more robust here and will fix this in the next version.
Hi,
I'm using node-red-contrib-dwd-local-weather 1.0.2 in Docker and I see some errors showing up:
Should I be worried? Best Regards, Carsten