Error

Before the error happened, I was…
Downloading these decks into my computer and it had an error messgae, and now only 50 cards of a thousand+ card deck are showing up

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\cvold\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\cvold\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\cvold\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 666, in download_deck
    deck_info = self.get_deck_by_id(ah_did)

  File "C:\Users\cvold\AppData\Roaming\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>



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\cvold\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\cvold\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py", line 36, in wrapper
    return func(*args, **kwargs)

  File "C:\Users\cvold\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\cvold\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py", line 36, in wrapper
    return func(*args, **kwargs)

  File "C:\Users\cvold\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\cvold\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\cvold\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 c45ff8fd-43fc-4265-b7ea-27e194febc83: 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 should just be a temporary error and is probably not related to your cards not showing up.

Regarding your missing cards, please follow these steps:

  1. Reset local changes: How to Reset Local Changes
  2. See this tutorial to correctly configure your deck and unsuspend cards. You may just have a limit on new cards, or your cards might be suspended: How to Get Started Studying

If this does not resolve the issue, please give me more information about the problem you are facing. Which deck is it? Did you just download the deck? Please send screenshots of what you see.