Errors downloading

I was just downloading decks from Ankihub and these errors came up.

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.1-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-12-03 01:15:13

Traceback (most recent call last):

  File "/Users/fynnsp/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/fynnsp/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/fynnsp/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/fynnsp/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/fynnsp/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/fynnsp/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/fynnsp/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/fynnsp/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/fynnsp/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/fynnsp/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/fynnsp/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)

Are you still getting this error after trying syncing again?

@ProductTeam this appears to only affect the Ankizin deck occasionally. The root cause is apparently the csv_notes_filename field being null. It’s not clear to me what could be causing this, but maybe it has something to do with the task run to upload notes every few hours?

Thank you for the answer.
It seems to have fixed itself over night :D.