Add-on error

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

Error message (don't change this)
Anki 26.05 (e64c6b1a) (ao)
Python 3.13.13 Qt 6.11.0 PyQt 6.11.0
Platform: Windows-11-10.0.26200-SP0

Traceback (most recent call last):

  File "C:\Users\User\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 201, in _download_and_install_decks_inner
    _download_and_install_single_deck(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        deck,
        ^^^^^
        behavior_on_remote_note_deleted=behavior_on_remote_note_deleted,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        recommended_deck_settings=recommended_deck_settings,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^

  File "C:\Users\User\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 228, in _download_and_install_single_deck
    notes_data: List[NoteInfo] = AnkiHubClient().download_deck(
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        deck.ah_did, download_progress_cb=deck_download_progress_cb
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^

  File "C:\Users\User\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 667, in download_deck
    s3_url_suffix = self._presigned_url_suffix_from_key(key=deck_info.csv_notes_filename, action="download")

  File "C:\Users\User\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 1018, in _presigned_url_suffix_from_key
    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>



The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "D:\a\anki\anki\out\installer\build\anki\windows\app\src\app_packages\aqt\taskman.py", line 152, in raise_exception

  File "D:\a\anki\anki\out\installer\build\anki\windows\app\src\app_packages\aqt\taskman.py", line 148, in _on_closures_pending

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

  File "concurrent\futures\_base.py", line 449, in result

  File "concurrent\futures\_base.py", line 401, in __get_result

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

  File "C:\Users\User\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 146, in _on_new_deck_subscriptions_done
    future.result()
    ~~~~~~~~~~~~~^^

  File "concurrent\futures\_base.py", line 449, in result

  File "concurrent\futures\_base.py", line 401, in __get_result

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

  File "C:\Users\User\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 97, in _on_install_done
    import_results: List[AnkiHubImportResult] = future.result()
                                                ~~~~~~~~~~~~~^^

  File "concurrent\futures\_base.py", line 449, in result

  File "concurrent\futures\_base.py", line 401, in __get_result

  File "concurrent\futures\thread.py", line 59, in run

  File "C:\Users\User\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 81, in <lambda>
    task=lambda: _download_and_install_decks_inner(
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        decks,
        ^^^^^^
        behavior_on_remote_note_deleted=behavior_on_remote_note_deleted,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        recommended_deck_settings=recommended_deck_settings,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ),
    ^

  File "C:\Users\User\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 218, in _download_and_install_decks_inner
    raise exceptions[0]

1322529746.gui.exceptions.DeckDownloadAndInstallError: Error while downloading and installing deck d7bf5573-65ee-4c40-aa9f-d0b20fd653af: 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,

Can you please try again and see if this error repeats? It should be temporary

It works now. Thank you!

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