Onigiri addon

Before the error happened, I was setting up the onigiri addon

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-26.4.1-arm64-arm-64bit-Mach-O

Traceback (most recent call last):

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

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

  File "/Users/mohammadkhan/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 88, in <lambda>
    lambda future: self.run_on_main(lambda: on_done(future))
                                            ~~~~~~~^^^^^^^^

  File "/Users/mohammadkhan/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 111, in wrapped_done
    on_done(fut)
    ~~~~~~~^^^^^

  File "/Users/mohammadkhan/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/operations/__init__.py", line 253, in wrapped_done
    self._failure(exception)
    ~~~~~~~~~~~~~^^^^^^^^^^^

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

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

  File "/Users/mohammadkhan/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/mohammadkhan/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/mohammadkhan/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)

  File "/Users/mohammadkhan/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/operations/__init__.py", line 243, in wrapped_op
    return self._op(mw.col)
           ~~~~~~~~^^^^^^^^

  File "/Users/mohammadkhan/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/mohammadkhan/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 65, in update_decks_and_media
    self._update_decks(ah_dids)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^

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

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

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

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

  File "/Users/mohammadkhan/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: