Error w anking

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 25.09.2 (3890e12c) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-15.6.1-arm64-arm-64bit-Mach-O

Traceback (most recent call last):

  File "/Users/Krithika/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 100, in sync_with_ankiweb
    future.result()
    ~~~~~~~~~~~~~^^

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception

  File "/Users/Krithika/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 36, in wrapper
    return func(*args, **kwargs)

  File "/Users/Krithika/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 205, in _on_sync_done
    sync_with_ankiweb(on_done=partial(on_done, future=future_with_result(None)))
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/Krithika/Library/Application Support/Anki2/addons21/1322529746/gui/utils.py", line 754, in sync_with_ankiweb
    on_done()
    ~~~~~~~^^

  File "/Users/Krithika/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 108, in sync_with_ankiweb
    original_sync_collection_and_media(*args, **kwargs, after_sync=new_after_sync)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/main.py", line 1113, in _sync_collection_and_media
    sync_collection(self, on_done=on_collection_sync_finished)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/sync.py", line 98, in sync_collection
    raise Exception("expected auth")

Exception: expected auth


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 152, in raise_exception
    raise exception

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 148, in _on_closures_pending
    closure()
    ~~~~~~~^^

  File "/Users/Krithika/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 105, in sync_with_ankiweb
    original_sync_collection_and_media(*args, **kwargs, after_sync=new_after_sync)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/main.py", line 1113, in _sync_collection_and_media
    sync_collection(self, on_done=on_collection_sync_finished)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/sync.py", line 98, in sync_collection
    raise Exception("expected auth")

Exception: expected auth

Sentry link (for developers)

Hello,

Are you logged in to AnkiWeb? Does logging in make the error go away?

If not, please try the following:

First, ensure you are on the latest version of Anki. You can download it here: https://apps.ankiweb.net/. After downloading, simply run the downloaded file to update your application.

Next, please update the AnkiHub add-on:

  1. On your Anki main screen, go to Tools > Add-ons > Check for Updates.
  2. After the update is complete, please restart Anki.

Let us know if the issue persists after trying these steps. :blush: