AnkiHub Add-on Error 502 Bad Gateway 01/05/2026

Before the error happened, I was

[Replace this text.]

Error message (don't change this)
Anki 25.07.5 (7172b2d2) (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/valeriegirgis/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/valeriegirgis/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/valeriegirgis/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 104, in <lambda>
    op=lambda _: _upload_logs(key),
                 ~~~~~~~~~~~~^^^^^

  File "/Users/valeriegirgis/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 587, in _upload_logs
    raise e

  File "/Users/valeriegirgis/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 579, in _upload_logs
    client.upload_logs(
    ~~~~~~~~~~~~~~~~~~^
        file=log_file_path(),
        ^^^^^^^^^^^^^^^^^^^^^
        key=key,
        ^^^^^^^^
    )
    ^

  File "/Users/valeriegirgis/Library/Application Support/Anki2/addons21/1322529746/addon_ankihub_client.py", line 81, in upload_logs
    s3_url_suffix = self._presigned_url_suffix_from_key(key=key, action="upload")

  File "/Users/valeriegirgis/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 974, in _presigned_url_suffix_from_key
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway

Sentry link (for developers)

Before the error happened, I was just trying to sync my anki, and then the following showed up (pls see below)

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/a12486/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/a12486/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/a12486/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 104, in <lambda>
    op=lambda _: _upload_logs(key),
                 ~~~~~~~~~~~~^^^^^

  File "/Users/a12486/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 587, in _upload_logs
    raise e

  File "/Users/a12486/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 579, in _upload_logs
    client.upload_logs(
    ~~~~~~~~~~~~~~~~~~^
        file=log_file_path(),
        ^^^^^^^^^^^^^^^^^^^^^
        key=key,
        ^^^^^^^^
    )
    ^

  File "/Users/a12486/Library/Application Support/Anki2/addons21/1322529746/addon_ankihub_client.py", line 81, in upload_logs
    s3_url_suffix = self._presigned_url_suffix_from_key(key=key, action="upload")

  File "/Users/a12486/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 974, in _presigned_url_suffix_from_key
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway

Sentry link (for developers)

Before the error happened, I was

using Anki fine throughout the day, took a few hour break and when tried to reopen was met with an ‘AnkiHub add-on error’ that prevents syncing of Anki to Ankihub

Error message (don't change this)
Anki 25.07.5 (7172b2d2) (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/blakebartnick/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/blakebartnick/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/blakebartnick/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 104, in <lambda>
    op=lambda _: _upload_logs(key),
                 ~~~~~~~~~~~~^^^^^

  File "/Users/blakebartnick/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 587, in _upload_logs
    raise e

  File "/Users/blakebartnick/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 579, in _upload_logs
    client.upload_logs(
    ~~~~~~~~~~~~~~~~~~^
        file=log_file_path(),
        ^^^^^^^^^^^^^^^^^^^^^
        key=key,
        ^^^^^^^^
    )
    ^

  File "/Users/blakebartnick/Library/Application Support/Anki2/addons21/1322529746/addon_ankihub_client.py", line 81, in upload_logs
    s3_url_suffix = self._presigned_url_suffix_from_key(key=key, action="upload")

  File "/Users/blakebartnick/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 974, in _presigned_url_suffix_from_key
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway

Sentry link (for developers)

Before the error happened, I was

[Replace this text.]

Error message (don't change this)
Anki 25.07.5 (7172b2d2) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: Windows-11-10.0.26100-SP0

Traceback (most recent call last):

  File "C:\Users\Tyler\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)

  File "C:\Users\Tyler\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\operations\__init__.py", line 243, in wrapped_op
    return self._op(mw.col)
           ~~~~~~~~^^^^^^^^

  File "C:\Users\Tyler\AppData\Roaming\Anki2\addons21\1322529746\gui\errors.py", line 104, in <lambda>
    op=lambda _: _upload_logs(key),
                 ~~~~~~~~~~~~^^^^^

  File "C:\Users\Tyler\AppData\Roaming\Anki2\addons21\1322529746\gui\errors.py", line 587, in _upload_logs
    raise e

  File "C:\Users\Tyler\AppData\Roaming\Anki2\addons21\1322529746\gui\errors.py", line 579, in _upload_logs
    client.upload_logs(
    ~~~~~~~~~~~~~~~~~~^
        file=log_file_path(),
        ^^^^^^^^^^^^^^^^^^^^^
        key=key,
        ^^^^^^^^
    )
    ^

  File "C:\Users\Tyler\AppData\Roaming\Anki2\addons21\1322529746\addon_ankihub_client.py", line 81, in upload_logs
    s3_url_suffix = self._presigned_url_suffix_from_key(key=key, action="upload")

  File "C:\Users\Tyler\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 974, in _presigned_url_suffix_from_key
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway

Sentry link (for developers)

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\legion\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)

  File "C:\Users\legion\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\operations\__init__.py", line 243, in wrapped_op
    return self._op(mw.col)
           ~~~~~~~~^^^^^^^^

  File "C:\Users\legion\AppData\Roaming\Anki2\addons21\1322529746\gui\errors.py", line 104, in <lambda>
    op=lambda _: _upload_logs(key),
                 ~~~~~~~~~~~~^^^^^

  File "C:\Users\legion\AppData\Roaming\Anki2\addons21\1322529746\gui\errors.py", line 587, in _upload_logs
    raise e

  File "C:\Users\legion\AppData\Roaming\Anki2\addons21\1322529746\gui\errors.py", line 579, in _upload_logs
    client.upload_logs(
    ~~~~~~~~~~~~~~~~~~^
        file=log_file_path(),
        ^^^^^^^^^^^^^^^^^^^^^
        key=key,
        ^^^^^^^^
    )
    ^

  File "C:\Users\legion\AppData\Roaming\Anki2\addons21\1322529746\addon_ankihub_client.py", line 81, in upload_logs
    s3_url_suffix = self._presigned_url_suffix_from_key(key=key, action="upload")

  File "C:\Users\legion\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 974, in _presigned_url_suffix_from_key
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway

Sentry link (for developers)

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

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

  File "C:\Users\legion\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\taskman.py", line 88, in <lambda>
    lambda future: self.run_on_main(lambda: on_done(future))
                                            ~~~~~~~^^^^^^^^

  File "C:\Users\legion\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\operations\__init__.py", line 253, in wrapped_done
    self._failure(exception)
    ~~~~~~~~~~~~~^^^^^^^^^^^

  File "C:\Users\legion\AppData\Roaming\Anki2\addons21\1322529746\gui\reviewer.py", line 438, in on_failure
    raise exception

  File "C:\Users\legion\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)

  File "C:\Users\legion\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\operations\__init__.py", line 243, in wrapped_op
    return self._op(mw.col)
           ~~~~~~~~^^^^^^^^

  File "C:\Users\legion\AppData\Roaming\Anki2\addons21\1322529746\user_state.py", line 165, in <lambda>
    op=lambda _: AnkiHubClient().get_user_details(),
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^

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

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway

Sentry link (for developers)

Before the error happened, I was

[Clicking sync.]

Error message (don't change this)
Anki 25.02.7 (1b882285)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-26.1-arm64-arm-64bit

Traceback (most recent call last):

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

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

  File "/Users/ethanoesterle/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 104, in <lambda>
    op=lambda _: _upload_logs(key),

  File "/Users/ethanoesterle/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 587, in _upload_logs
    raise e

  File "/Users/ethanoesterle/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 579, in _upload_logs
    client.upload_logs(

  File "/Users/ethanoesterle/Library/Application Support/Anki2/addons21/1322529746/addon_ankihub_client.py", line 81, in upload_logs
    s3_url_suffix = self._presigned_url_suffix_from_key(key=key, action="upload")

  File "/Users/ethanoesterle/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 974, in _presigned_url_suffix_from_key
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway

Sentry link (for developers)

Before the error happened, I was

[Replace this text.]

Error message (don't change this)
Anki 25.02.5 (29192d15)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.26200

Traceback (most recent call last):

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

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

  File "aqt.taskman", line 108, in wrapped_done

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

  File "C:\Users\vince\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 99, in <lambda>
    ).failure(lambda e: on_done(future_with_exception(e))).with_progress().run_in_background()

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

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

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

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

  File "C:\Users\vince\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 96, in <lambda>
    op=lambda _: get_subscriptions_and_clean_up(),

  File "C:\Users\vince\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 89, in get_subscriptions_and_clean_up
    subscribed_decks = client.get_deck_subscriptions()

  File "C:\Users\vince\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 589, in get_deck_subscriptions
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway

Sentry link (for developers)

Before the error happened, I was reviewing cards.

Error message (don't change this)
Anki 25.07.5 (7172b2d2) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-26.1-arm64-arm-64bit-Mach-O

Traceback (most recent call last):

  File "/Users/ethancripe/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/ethancripe/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/ethancripe/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 104, in <lambda>
    op=lambda _: _upload_logs(key),
                 ~~~~~~~~~~~~^^^^^

  File "/Users/ethancripe/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 587, in _upload_logs
    raise e

  File "/Users/ethancripe/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 579, in _upload_logs
    client.upload_logs(
    ~~~~~~~~~~~~~~~~~~^
        file=log_file_path(),
        ^^^^^^^^^^^^^^^^^^^^^
        key=key,
        ^^^^^^^^
    )
    ^

  File "/Users/ethancripe/Library/Application Support/Anki2/addons21/1322529746/addon_ankihub_client.py", line 81, in upload_logs
    s3_url_suffix = self._presigned_url_suffix_from_key(key=key, action="upload")

  File "/Users/ethancripe/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 974, in _presigned_url_suffix_from_key
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway

Sentry link (for developers)

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

Traceback (most recent call last):

  File "/Users/jonathandenton/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/jonathandenton/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/jonathandenton/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 104, in <lambda>
    op=lambda _: _upload_logs(key),
                 ~~~~~~~~~~~~^^^^^

  File "/Users/jonathandenton/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 587, in _upload_logs
    raise e

  File "/Users/jonathandenton/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 579, in _upload_logs
    client.upload_logs(
    ~~~~~~~~~~~~~~~~~~^
        file=log_file_path(),
        ^^^^^^^^^^^^^^^^^^^^^
        key=key,
        ^^^^^^^^
    )
    ^

  File "/Users/jonathandenton/Library/Application Support/Anki2/addons21/1322529746/addon_ankihub_client.py", line 81, in upload_logs
    s3_url_suffix = self._presigned_url_suffix_from_key(key=key, action="upload")

  File "/Users/jonathandenton/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 974, in _presigned_url_suffix_from_key
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway

Sentry link (for developers)

Before the error happened, I was

[trying to make the learning interval into 1m, 10m, 1d], but when i get to the deck, it doesn’t let me to set to this interval and this error message happened.

Error message (don't change this)
Anki 25.02.7 (1b882285)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-15.5-x86_64-i386-64bit

Traceback (most recent call last):

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

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

  File "/Users/zihoustory/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 104, in <lambda>
    op=lambda _: _upload_logs(key),

  File "/Users/zihoustory/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 587, in _upload_logs
    raise e

  File "/Users/zihoustory/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 579, in _upload_logs
    client.upload_logs(

  File "/Users/zihoustory/Library/Application Support/Anki2/addons21/1322529746/addon_ankihub_client.py", line 81, in upload_logs
    s3_url_suffix = self._presigned_url_suffix_from_key(key=key, action="upload")

  File "/Users/zihoustory/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 974, in _presigned_url_suffix_from_key
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway

Sentry link (for developers)

Before the error happened, I was

[Replace this text.]

Error message (don't change this)
Anki 25.02.7 (1b882285)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-15.6.1-arm64-arm-64bit

Traceback (most recent call last):

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

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

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

  File "/Users/collinreeves/Library/Application Support/Anki2/addons21/1322529746/gui/reviewer.py", line 438, in on_failure
    raise exception

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

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

  File "/Users/collinreeves/Library/Application Support/Anki2/addons21/1322529746/user_state.py", line 165, in <lambda>
    op=lambda _: AnkiHubClient().get_user_details(),

  File "/Users/collinreeves/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 1242, in get_user_details
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway

Sentry link (for developers)

Hello,

This was a temporary server issue. The issue is now resolved!

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