Unable to upload to a collaborative deck

Before the error happened, I was…
I am trying to make collaborative anki decks with my study group on Ankihub. I am the creator of the deck and have been adding cards. However, ankihub is not uploading my added cards.

Error message (don't change this)
Anki 2.1.66 (70506aeb) Python 3.9.15 Qt 5.14.2 PyQt 5.14.1
Platform: macOS-13.0-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-09-22 08:25:41

Traceback (most recent call last):

  File "aqt.taskman", line 122, in _on_closures_pending

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

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

  File "aqt.operations", line 242, in wrapped_done

  File "/Users/courtneyhallock/Library/Application Support/Anki2/addons21/1322529746/gui/menu.py", line 325, in on_failure
    raise exc

  File "concurrent.futures.thread", line 58, in run

  File "aqt.operations", line 232, in wrapped_op

  File "/Users/courtneyhallock/Library/Application Support/Anki2/addons21/1322529746/gui/menu.py", line 329, in <lambda>
    op=lambda col: create_ankihub_deck(

  File "/Users/courtneyhallock/Library/Application Support/Anki2/addons21/1322529746/main/deck_creation.py", line 62, in create_ankihub_deck
    ankihub_did = _upload_deck(

  File "/Users/courtneyhallock/Library/Application Support/Anki2/addons21/1322529746/main/deck_creation.py", line 142, in _upload_deck
    ankihub_did = client.upload_deck(

  File "/Users/courtneyhallock/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 309, in upload_deck
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 400 Bad Request

Sentry link (for developers)

Have you suggested the new cards yet to a deck on AnkiHub you have created? Can you elaborate further?

I checked the logs and it appears the error happens because you’ve already uploaded that deck and have it on AnkiHub. If you’re trying to add new cards to it, you have to suggest the cards as @Ahmed7 said. Please see the docs here if you’re unsure how to do that: Collaborate on a Deck - AnkiHub

1 Like