Zren / plasma-applet-eventcalendar

https://store.kde.org/p/998901/
453 stars 91 forks source link

Error fetching weather. #313

Open wtrabbithole opened 2 years ago

wtrabbithole commented 2 years ago

The widget is unable to receive a weather update. The Internet is available, the weather site is available, the Google calendar is normally synchronized. What could be the problem? Enabled widget debugging and included archive in question xsession-errors.tar.gz

Zren commented 2 years ago

OpenWeatherMap reached their free API limit (and then some) so it was disabled for a little while.

I need to implement a few other wether sources. As currently there's only EnvCanada as an alternative.

Zren commented 2 years ago

Wait, hmmm. HTTP Error 0? Sometimes plasmashell just doesn't let eventcalendar connect to the internet for some reason. This is more noticeable when it happens to Google Calendar web requests, but I guess it can happen for weather too.

Restarting Plasma usually fixes it. It's a really annoying bug to analyze.

qml: temp unit: 0
QIODevice::skip (QBuffer): WriteOnly device
QIODevice::skip (QBuffer): WriteOnly device
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: HTTP 0 Headers: 

qml: [eventcalendar] updateHourlyWeather.err HTTP Error 0 0 
qml: [eventcalendar] updateHourlyWeather.err HTTP Error 0 0 
qml: XMLHttpRequest.onerror 0
qml: [eventcalendar] updateHourlyWeather.err HTTP Error 0 0 null
qml: [eventcalendar] updateHourlyWeather.err HTTP Error 0 0 null
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
trying to show an empty dialog
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
qml: temp unit: 0
ApportEvent :: hidden= false apport-kde= true apport-gtk= false
Using ApportEvent
""
foundCrashFile false foundAutoUpload false
KDE Languages: ()
("ru_RU.UTF-8", "ru", "_RU", "RU", ".UTF-8", "UTF-8", "", "")
System Language Matchables: ("ru_RU", "ru")
qml: temp unit: 0
qml: temp unit: 0
wtrabbithole commented 2 years ago

Restarting the plasma did not help, even when done several times. The error still occurred. I left for a while, the computer was turned on and at one time in my absence the weather changed. I thought that the error was on the side of the weather service and it was fixed, but now the widget says again that it is impossible to update the weather...

wtrabbithole commented 2 years ago

I'm not sure yet, but it looks like one of the third-party tabs for ksysguard was the cause of this bug. The weather forecast has been updated. I'll take a look and post an answer.

wtrabbithole commented 2 years ago

Unfortunately the error is repeated. log if needed xsession-errors.tar.gz