ERROR

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: Windows-11-10.0.26200-SP0

Traceback (most recent call last):

  File "C:\Users\Owner\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py", line 100, in sync_with_ankiweb
    future.result()
    ~~~~~~~~~~~~~^^

  File "C:\Users\Owner\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 449, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "C:\Users\Owner\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 401, in __get_result
    raise self._exception

  File "C:\Users\Owner\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py", line 36, in wrapper
    return func(*args, **kwargs)

  File "C:\Users\Owner\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 267, in _on_sync_done
    on_done(future_with_result(None))
    ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\Owner\AppData\Roaming\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 "C:\Users\Owner\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\main.py", line 1113, in _sync_collection_and_media
    sync_collection(self, on_done=on_collection_sync_finished)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\Owner\AppData\Local\AnkiProgramFiles\.venv\Lib\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 "C:\Users\Owner\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\taskman.py", line 152, in raise_exception
    raise exception

  File "C:\Users\Owner\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\taskman.py", line 148, in _on_closures_pending
    closure()
    ~~~~~~~^^

  File "C:\Users\Owner\AppData\Roaming\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 "C:\Users\Owner\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\main.py", line 1113, in _sync_collection_and_media
    sync_collection(self, on_done=on_collection_sync_finished)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\Owner\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\sync.py", line 98, in sync_collection
    raise Exception("expected auth")

Exception: expected auth

Sentry link (for developers)

Hello,

Please try the following:

  • Log out of AnkiWeb in Anki’s sync settings, then log back in.
  • Log out of the AnkiHub add‑on and log back in.
  • Restart Anki.
  • Try syncing again.