felixhageloh / weather-widget

A weather widget for Übersicht
64 stars 32 forks source link

Error message #54

Open WGrav01 opened 2 years ago

WGrav01 commented 2 years ago

(node:11416) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification. (Use node-x64 --trace-warnings ... to show where the warning was created) {"code":400,"error":"Poorly formatted request","location":"NOT LEAKING MY LOCATION"}

jetblackrx89 commented 2 years ago

I think this can be fixed either in the Widget or in Uebersicht itself. I posted about this here:

https://github.com/felixhageloh/uebersicht/issues/478

The fix is to just change line 4 of get-weather.js to:

process.env.NODE_TLS_REJECT_UNAUTHORIZED = 1;