Error after trying to create a collaborative deck

Before the error happened, I was…
[Trying to create a collaborative deck]

Error message (don't change this)
Anki 2.1.60 (76d88073) Python 3.9.15 Qt 6.3.2 PyQt 6.3.1
Platform: macOS-12.3-arm64-arm-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-10-05 11:03:31

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 249, in wrapped_done

  File "/Users/jaarondavis/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 239, in wrapped_op

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

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

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

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

The error is showing because you already have a deck with the same name shared on AnkiHub.

@ProductTeam the web app sends the “You already have a deck with that name.” error message but the add-on is failing to show it to the user.

@Ahmed7 That’s a different issue.

2 Likes