Error while trying to suggest new cards to AnkiHub

Submission of new cards failed after previously discarding the new note suggestions of the same cards on AnkiHub.

Error message (don't change this)
Anki 23.10.1 (fac9e0ee) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-14.1.2-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-12-02 00:45:51

Traceback (most recent call last):

  File "/Users/victorpaselly/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 120, in _download_and_install_decks_inner
    result.append(_download_and_install_single_deck(ah_did))

  File "/Users/victorpaselly/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 145, in _download_and_install_single_deck
    notes_data: List[NoteInfo] = AnkiHubClient().download_deck(

  File "/Users/victorpaselly/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 619, in download_deck
    s3_url_suffix = self._get_presigned_url_suffix(

  File "/Users/victorpaselly/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 875, in _get_presigned_url_suffix
    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 "aqt.taskman", line 138, in _on_closures_pending

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

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

  File "/Users/victorpaselly/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 44, in on_install_done
    on_done(future_with_exception(e))

  File "/Users/victorpaselly/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 72, in <lambda>
    on_done=lambda future: on_new_deck_subscriptions_done(

  File "/Users/victorpaselly/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 27, in on_new_deck_subscriptions_done
    on_done(future_with_exception(future.exception()))

  File "/Users/victorpaselly/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 74, in sync_with_ankiweb
    future.result()

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

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

  File "/Users/victorpaselly/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 42, in on_install_done
    import_results: List[AnkiHubImportResult] = 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 "/Users/victorpaselly/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 71, in <lambda>
    task=lambda: _download_and_install_decks_inner(ankihub_dids),

  File "/Users/victorpaselly/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 132, in _download_and_install_decks_inner
    raise exceptions[0]

1322529746.gui.exceptions.DeckDownloadAndInstallError: Error while downloading and installing deck b2fa8710-93fc-48f3-ab4a-fd14f4435624: AnkiHub request error: 400 Bad Request

Sentry link (for developers)

This should be a temporary error. Let us know if you’re still facing it.