Error

Before the error happened, I was…
just trying to sync the app and i got an error messsage

Error message (don't change this)
Anki 26.05 (e64c6b1a) (ao)
Python 3.13.11 Qt 6.11.0 PyQt 6.11.0
Platform: macOS-26.2-arm64-arm-64bit-Mach-O

Traceback (most recent call last):

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py", line 152, in raise_exception

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py", line 148, in _on_closures_pending

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py", line 88, in <lambda>

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py", line 111, in wrapped_done

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/operations/__init__.py", line 253, in wrapped_done

  File "/Users/emanuelvega/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 177, in on_failure
    on_done(future_with_exception(exception))
    ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

  File "/Applications/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "/Applications/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception

  File "/Applications/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/operations/__init__.py", line 243, in wrapped_op

  File "/Users/emanuelvega/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 166, in <lambda>
    op=lambda _: ah_deck_updater.update_decks_and_media(
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        ah_dids,
        ^^^^^^^^
        raise_if_full_sync_required=raise_if_full_sync_required,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        start_media_sync=start_media_sync,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ),
    ^

  File "/Users/emanuelvega/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 67, in update_decks_and_media
    self._update_decks(ah_dids)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^

  File "/Users/emanuelvega/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 97, in _update_decks
    raise e

  File "/Users/emanuelvega/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 90, in _update_decks
    should_continue = self._update_single_deck(ah_did)

  File "/Users/emanuelvega/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 102, in _update_single_deck
    self._update_deck_config(ankihub_did)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^

  File "/Users/emanuelvega/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 118, in _update_deck_config
    deck = self._client.get_deck_by_id(ankihub_did)

  File "/Users/emanuelvega/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 904, in get_deck_by_id
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
</body>
</html>

Sentry link (for developers)

Hello,

This is just a temporary server issue. Everything should be back to normal soon!

Please restart Anki and let us know if you continue to experience this issue! :blush:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.