Page 1 of 1

Unable to reach Weather Underground

PostPosted: Mon Apr 02, 2018 11:38 am
by Monstergerm
Lately, I am getting a lot of these connection errors, often 10-15 errors during the day. Anybody else getting those? Anything wrong with the WU API server? I have no indication that my internet connection is down.

WUnderground 7 Error Unable to reach Weather Underground. (Line 1284) HTTPConnectionPool(host='api.wunderground.com', port=80): Read timed out. (read timeout=10) Sleeping until next scheduled poll.

Re: Unable to reach Weather Underground

PostPosted: Mon Apr 02, 2018 11:48 am
by DaveL17
Unfortunately, it seems that there is almost always something wrong with the Weather Underground API server. :(

The plugin tries to reach the API using the requests module and timeout after 10 seconds. I'll raise the limit to 20 seconds, but I have no confidence that will reduce the number of API connection errors to be honest. I'll also simplify the message and will write the full message to the debug log (technically, it's not an error).

Re: Unable to reach Weather Underground

PostPosted: Mon Apr 02, 2018 3:53 pm
by DaveL17
lanbrown wrote:
Just do as IBM does in their error messages. Word the error like this:
"This is not a plugin issue, please contact Wunderground for further assistance."

LOL - I try to be more responsive than that. :D