Undefined error
Closed this issue · 3 comments
realwax commented
Hi,
I received the following error messages using version 3.4.1. (no changed config since a long time and I never used an API key):
weatherunderground.0 | 2022-04-16 18:02:19.977 | error | No current observation data found in response |
---|---|---|---|
weatherunderground.0 | 2022-04-16 18:02:19.700 | error | WUnderground reported an error: undefined/{"message":"Request failed with status code 204","name":"Error","stack":"Error: Request failed with status code 204\n at createError (/opt/iobroker/node_modules/iobroker.weatherunderground/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/opt/iobroker/node_modules/iobroker.weatherunderground/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/iobroker.weatherunderground/node_modules/axios/lib/adapters/http.js:322:11)\n at IncomingMessage.emit (events.js:412:35)\n at IncomingMessage.emit (domain.js:475:12)\n at endReadableNT (internal/streams/readable.js:1334:12)\n at processTicksAndRejections (internal/process/task_queues.js:82:21)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":15000,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"headers":{"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8","User-Agent":"Mozilla/5.0 (Windows) Gecko/20100101 Firefox/68.0","Accept-Language":"de-DE,de;q=0.8,en-US;q=0.5,en;q=0.3"},"method":"get","url":"https://api.weather.com/v2/pws/observations/current?numericPrecision=decimal&apiKey=e1f10a1e78da46f5b10a1e78da96f525&units=m&stationId=IBRIGI14&format=json"},"status":204} |
Thanks for help/fix :)
Apollon77 commented
Error 204 usually means that the weather station is currentlxy offline ... and so no data are availavle. I will enhance the error message
realwax commented
I see. Thank you. Interesting side note... I have no weather station defined in the config, only the city/district but maybe they changed their data. I will try to change my location data and enter weather station. Seems to work...
Apollon77 commented
I added a special log for this case that should prevent further questions :-)