Issue downloading deck that friend uploaded

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

Error message (don't change this)
Anki 25.09 (539054c3) (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\gibbs\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 193, 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\gibbs\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 220, 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\gibbs\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 623, in download_deck
    s3_url_suffix = self._presigned_url_suffix_from_key(key=deck_info.csv_notes_filename, action="download")

  File "C:\Users\gibbs\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: 400 Bad Request


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


Traceback (most recent call last):

  File "C:\Users\gibbs\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\taskman.py", line 152, in raise_exception
    raise exception

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

  File "C:\Users\gibbs\AppData\Roaming\Anki2\addons21\1322529746\gui\menu.py", line 330, in on_done
    future.result()
    ~~~~~~~~~~~~~^^

  File "C:\Users\gibbs\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 449, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "C:\Users\gibbs\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 401, in __get_result
    raise self._exception

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

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

  File "C:\Users\gibbs\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 449, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "C:\Users\gibbs\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 401, in __get_result
    raise self._exception

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

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

  File "C:\Users\gibbs\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 449, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "C:\Users\gibbs\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 401, in __get_result
    raise self._exception

  File "C:\Users\gibbs\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\gibbs\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 78, 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\gibbs\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 210, in _download_and_install_decks_inner
    raise exceptions[0]

1322529746.gui.exceptions.DeckDownloadAndInstallError: Error while downloading and installing deck fbb2820e-7648-431b-99d9-088bf500114d: AnkiHub request error: 400 Bad Request

Sentry link (for developers)

Hello, I uploaded the deck he is trying to download. He can download other decks he’s subscribed to so I know the issue is with mine specifically. I am able to sync the deck on my end and I’m not sure what the issue is. I haven’t uploaded a deck before so there may be something obvious I’m doing wrong.

Thank You

Can you try again now @gibbsbellamour? The deck had a database issue that should be fixed now.

It’s fixed now thank you for your help!

1 Like

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