varietywalls / variety

Wallpaper downloader and manager for Linux systems
http://peterlevi.com/variety
GNU General Public License v3.0
1.12k stars 137 forks source link

Python http error crashes my computer #625

Open lo-zed opened 1 year ago

lo-zed commented 1 year ago

Version of Variety variety 0.8.10

Description Any program using python stopped working and after some time the computer crashed. I had to hard restart without the possibility to switch to another tty.

Context Happened once so far.

To Reproduce Not sure if easily repdocuceable.

Log Got this error from journalctl

jun 21 09:43:12 steg variety.desktop[1285]: ERROR: 2023-06-21 09:43:12,181: download_one_from() 'Could not download wallpaper:'
jun 21 09:43:12 steg variety.desktop[1285]: Traceback (most recent call last):
jun 21 09:43:12 steg variety.desktop[1285]:   File "/usr/lib/python3.11/site-packages/variety/VarietyWindow.py", line 1164, in download_one_from
jun 21 09:43:12 steg variety.desktop[1285]:     file = downloader.download_one()
jun 21 09:43:12 steg variety.desktop[1285]:            ^^^^^^^^^^^^^^^^^^^^^^^^^
jun 21 09:43:12 steg variety.desktop[1285]:   File "/usr/lib/python3.11/site-packages/variety/plugins/downloaders/DefaultDownloader.py", line 141, in download_one
jun 21 09:43:12 steg variety.desktop[1285]:     items = self.fill_queue()
jun 21 09:43:12 steg variety.desktop[1285]:             ^^^^^^^^^^^^^^^^^
jun 21 09:43:12 steg variety.desktop[1285]:   File "/usr/lib/python3.11/site-packages/variety/plugins/builtin/downloaders/NationalGeographicDownloader.py", line 54, in fill_queue
jun 21 09:43:12 steg variety.desktop[1285]:     queue = Util.fetch_json(DATA_URL)
jun 21 09:43:12 steg variety.desktop[1285]:             ^^^^^^^^^^^^^^^^^^^^^^^^^
jun 21 09:43:12 steg variety.desktop[1285]:   File "/usr/lib/python3.11/site-packages/variety/Util.py", line 684, in fetch_json
jun 21 09:43:12 steg variety.desktop[1285]:     return Util.request(url, data, **request_kwargs).json()
jun 21 09:43:12 steg variety.desktop[1285]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
jun 21 09:43:12 steg variety.desktop[1285]:   File "/usr/lib/python3.11/site-packages/variety/Util.py", line 663, in request
jun 21 09:43:12 steg variety.desktop[1285]:     r.raise_for_status()
jun 21 09:43:12 steg variety.desktop[1285]:   File "/usr/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
jun 21 09:43:12 steg variety.desktop[1285]:     raise HTTPError(http_error_msg, response=self)
jun 21 09:43:12 steg variety.desktop[1285]: requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://www.nationalgeographic.co.uk/page-data/photo-of-day/page-data.json

Desktop environment and version gnome-shell 1:44.2-1

OS name and version Arch Linux Linux 6.3.8-arch1-1 x86_64