Pirate-Weather / pirate-weather-ha

Replacement for the default Dark Sky Home Assistant integration using Pirate Weather
https://pirateweather.net/
Apache License 2.0
369 stars 26 forks source link

[Error] Unable to connect to Dark Sky. 502 Server Error: Bad Gateway #3

Closed 1darklyte closed 3 years ago

1darklyte commented 3 years ago

This error started popping up today : https://prnt.sc/134o0kk

` Logger: custom_components.darksky.weather Source: custom_components/darksky/weather.py:278 Integration: darksky (documentation, issues) First occurred: 1:47:05 PM (1 occurrences) Last logged: 1:47:05 PM Unable to connect to Dark Sky. 502 Server Error: Bad Gateway for url: [URL Here]

1darklyte commented 3 years ago

as of 2:22pm EST seems to be back online

alexander0042 commented 3 years ago

I saw this too! I'd been noticing the occasional 502 in my instance, but I think I fixed that by changing the file system to burst mode instead of provisioned. However, today around then it started returning 502 for every request.

I traced this issue seems to have been in a bad alerts.json file from the National Weather Service. Either their server had a formatting issue, or my downloader cut out. I've added some more error handing code to handle this gracefully now, so shouldn't happen again!

Thanks for the report, it really helps fix things when these edge cases are bright up!