PLease help

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

Error message (don't change this)
Anki 26.09.3 (29bb700b) (ao)
Python 3.13.15 Qt 6.11.2 PyQt 6.11.0
Platform: macOS-15.7.9-x86_64-i386-64bit-Mach-O

Traceback (most recent call last):

  File "/Users/milo/Library/Application Support/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 "/Users/milo/Library/Application Support/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 "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 731, in download_deck
    s3_url_suffix = self._presigned_url_suffix_from_key(key=deck_info.csv_notes_filename, action="download")

  File "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 1082, in _presigned_url_suffix_from_key
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 400 Bad Request
{"error":"Invalid key value"}


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


Traceback (most recent call last):

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py", line 152, in raise_exception

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py", line 148, in _on_closures_pending

  File "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/gui/menu.py", line 440, in on_done
    future.result()
    ~~~~~~~~~~~~~^^

  File "/Volumes/Anki 26.9.3/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 453, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "/Volumes/Anki 26.9.3/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 402, in __get_result
    raise self._exception

  File "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 36, in wrapper
    return func(*args, **kwargs)

  File "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 179, in _on_new_deck_subscriptions_done
    future.result()
    ~~~~~~~~~~~~~^^

  File "/Volumes/Anki 26.9.3/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 453, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "/Volumes/Anki 26.9.3/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 402, in __get_result
    raise self._exception

  File "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 36, in wrapper
    return func(*args, **kwargs)

  File "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 97, in _on_install_done
    import_results: List[AnkiHubImportResult] = future.result()
                                                ~~~~~~~~~~~~~^^

  File "/Volumes/Anki 26.9.3/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 453, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "/Volumes/Anki 26.9.3/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 402, in __get_result
    raise self._exception

  File "/Volumes/Anki 26.9.3/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)

  File "/Users/milo/Library/Application Support/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 "/Users/milo/Library/Application Support/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 009b842c-4e0e-4133-9086-08734868c1df: AnkiHub request error: 400 Bad Request
{"error":"Invalid key value"}

Sentry link (for developers)

Im trying to download a new AnkiHub Deck

Error message (don't change this)
Anki 26.08.1 (39e4b0b4) (ao)
Python 3.13.14 Qt 6.11.0 PyQt 6.11.0
Platform: macOS-15.7.9-x86_64-i386-64bit-Mach-O

Traceback (most recent call last):

  File "/Users/milo/Library/Application Support/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 "/Users/milo/Library/Application Support/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 "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 731, in download_deck
    s3_url_suffix = self._presigned_url_suffix_from_key(key=deck_info.csv_notes_filename, action="download")

  File "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 1082, in _presigned_url_suffix_from_key
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 400 Bad Request
{"error":"Invalid key value"}


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


Traceback (most recent call last):

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py", line 152, in raise_exception

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py", line 148, in _on_closures_pending

  File "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/gui/decks_dialog.py", line 349, in on_done
    future.result()
    ~~~~~~~~~~~~~^^

  File "/Applications/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 453, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "/Applications/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 402, in __get_result
    raise self._exception

  File "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 36, in wrapper
    return func(*args, **kwargs)

  File "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 183, in _on_new_deck_subscriptions_done
    LOGGER.info("Full upload required after installation of decks.")
    ^^^^^^^^^^^

  File "/Applications/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 453, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "/Applications/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 402, in __get_result
    raise self._exception

  File "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 36, in wrapper
    return func(*args, **kwargs)

  File "/Users/milo/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 97, in _on_install_done
    import_results: List[AnkiHubImportResult] = future.result()
                                                ~~~~~~~~~~~~~^^

  File "/Applications/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 453, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "/Applications/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 402, in __get_result
    raise self._exception

  File "/Applications/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)

  File "/Users/milo/Library/Application Support/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 "/Users/milo/Library/Application Support/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 31db362f-ad99-4923-9dd7-c0a492feaf65: AnkiHub request error: 400 Bad Request
{"error":"Invalid key value"}

Sentry link (for developers)

Are you still getting the error now? There was a problem in the deck that should now be fixed.