Got an error message

Before the error happened, I was… switching from one deck to the Anking deck

Error message (don't change this)
Anki 24.04.1 (ccd9ca1a)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.26100

Traceback (most recent call last):

  File "aqt.taskman", line 142, in _on_closures_pending

  File "aqt.taskman", line 86, in <lambda>

  File "aqt.operations", line 252, in wrapped_done

  File "C:\Users\graha\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\__init__.py", line 31, in _on_failure
    raise exception

  File "concurrent.futures.thread", line 58, in run

  File "aqt.operations", line 242, in wrapped_op

  File "C:\Users\graha\AppData\Roaming\Anki2\addons21\1322529746\gui\reviewer.py", line 473, in fetch_is_premium_or_trialing
    return client.is_premium_or_trialing()

  File "C:\Users\graha\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 1297, in is_premium_or_trialing
    data = self.get_user_details()

  File "C:\Users\graha\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 1265, in get_user_details
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 401 Unauthorized

Sentry link (for developers)

Hello,

Just for due diligence you might try upgrading to the most recent version of Anki (24.11) here: https://apps.ankiweb.net/

Logging out of AnkiHub then signing in again should fix this.