Download of sun astronomical data failed with HTTP Status Code 403, Reason phrase: Forbidden
The weather plugin has recently stopped displaying any data. Running PANEL_DEBUG=weather xfce4-panel
gives the following relevant output:
(wrapper-2.0:19087): weather-WARNING **: 18:26:18.079: Download of sun astronomical data failed with HTTP Status Code 403, Reason phrase: Forbidden
Right-clicking and selecting "refresh" does not change anything or create any additional output. However, if I change the location to something else (i.e. New York City) and select refresh, the plugin crashes:
**
weather:ERROR:weather.c:1539:update_weatherdata_with_reset: assertion failed: (data != NULL)
Bail out! weather:ERROR:weather.c:1539:update_weatherdata_with_reset: assertion failed: (data != NULL)
xfce4-panel(external): weather-23: child is unembedded
xfce4-panel(external): weather-23: child exited with status 6
xfce4-panel-Message: 18:28:03.677: Plugin weather-23 has been automatically restarted after crash.
xfce4-panel(external): weather-23: scheduled a respawn of the child
xfce4-panel(external): weather-23: child spawned; pid=19574, argc=7
xfce4-panel(external): weather-23: child is embedded; 9 properties in queue
(wrapper-2.0:19574): weather-WARNING **: 18:28:04.246: Download of sun astronomical data failed with HTTP Status Code 403, Reason phrase: Forbidden
I am running Debian Sid. Here is my relevant system information:
# apt list --installed xfce4 xfce4-weather-plugin
xfce4/unstable,unstable,now 4.20 all [installed,automatic]
xfce4-weather-plugin/unstable,now 0.11.2-1+b1 amd64 [installed,automatic]
# uname -a
Linux divine-geometry 6.12.17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.17-1 (2025-03-01) x86_64 GNU/Linux
Additionally, I have tried to query the API in the same way the source code does via cURL to see if it's an issue with my IP, which doesn't appear to be the case.
curl -fsSL "https://api.met.no/weatherapi/locationforecast/2.0/classic?lat=40.712728&lon=-74.006015&altitude=85" | head -n 10
<weatherdata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.api.met.no/schemas/weatherapi-0.4.xsd" created="2025-03-12T22:42:44Z">
<meta>
<model name="met_public_forecast" termin="2025-03-12T19:00:00Z" runended="2025-03-12T19:16:39Z" nextrun="2025-03-13T01:16:39Z" from="2025-03-12T22:00:00Z" to="2025-03-22T00:00:00Z"></model>
</meta>
<product class="pointData">
<time datatype="forecast" from="2025-03-12T22:00:00Z" to="2025-03-12T22:00:00Z">
<location altitude="85" latitude="40.71272" longitude="-74.00601">
<temperature id="TTT" unit="celsius" value="8.8"></temperature>
<windDirection id="dd" deg="154.9" name="SE"></windDirection>
<windSpeed id="ff" mps="2.9" beaufort="2" name="Svak vind"></windSpeed>
...