New shared deck gets error when installing

I created a new shared deck. On my second computer, which is also logged into my AnkiHuba ccount, I tried to synchronize to install the new deck, but I am getting an error message with this debugging info:

Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.22621

Traceback (most recent call last):

File “C:\Users\owens\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 155, in _download_and_install_decks_inner
_download_and_install_single_deck(

File “C:\Users\owens\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 183, in _download_and_install_single_deck
notes_data: List[NoteInfo] = AnkiHubClient().download_deck(

File “C:\Users\owens\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 620, in download_deck
s3_url_suffix = self._get_presigned_url_suffix(

File “C:\Users\owens\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 876, 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 142, in _on_closures_pending

File “C:\Users\owens\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py”, line 64, in
on_done=lambda future: on_new_deck_subscriptions_done(

File “C:\Users\owens\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py”, line 27, in on_new_deck_subscriptions_done
on_done(future_with_exception(future.exception()))

File “C:\Users\owens\AppData\Roaming\Anki2\addons21\1322529746\gui\decks_dialog.py”, line 264, in on_done
future.result()

File “concurrent.futures._base”, line 439, in result

File “concurrent.futures._base”, line 391, in __get_result

File “C:\Users\owens\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py”, line 39, in wrapper
return func(*args, **kwargs)

File “C:\Users\owens\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 77, 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 “C:\Users\owens\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 67, in
task=lambda: _download_and_install_decks_inner(

File “C:\Users\owens\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 175, in _download_and_install_decks_inner
raise exceptions[0]

1322529746.gui.exceptions.DeckDownloadAndInstallError: Error while downloading and installing deck 0370cde6-1ac6-4bcc-abef-90491371df06: AnkiHub request error: 400 Bad Request

If you log out then log in again on your second computer, does the error go away?

Can you upload your logs using AnkiHub > Help> Upload logs?

Here is the bug report file name: ankihub_addon_logs_f36e7_1710174148.log

I also uploaded logs and data to this file: ankihub_addon_debug_info_f36e7_1710174548.zip

Logging out and back into AnkiHub on second computer, syncing, and rebuilding subdecks did not fix the problem.

This is a related report: Errors downloading

The issue should go away automatically after a while. Let me know if that’s not the case for you.

We should investigate why this happens. See details in the linked post.

That error did go away eventually, but after that the problem is that most of the deck doesn’t download to the second computer. I think it’s because I deleted the deck, and then reuploaded it because I had made too many changes to it to go through and suggest them all (which I didn’t know I had to do to get the changes to upload). I think this is the case because when I try to suggest updates to cards now, I get an error saying that card was already deleted from AnkiHub, so it can’t be updated. I am guessing that the simplest solution to this problem would be to bulk remove the AnkiHub IDs from all the cards in the deck, delete the deck again, and then reupload it again. That way, the system should recognize all the cards as new cards (not previously deleted ones), and upload them. Is there a way to do that? Or a better solution?

The simplest solution is to delete the whole deck from the Deck Settings page on the website.

I did that. That’s what led to the new problem I described.

Is this your deck Sign In?

Yes, the link in your comment goes to my deck. It’s the private Sketchy Clinical Medicine one. I hope to make it public once I’ve finished editing it.

I looked into this more and I think the issue is that most notes are getting skipped because there are notes with the same IDs in the AnKing deck.

image

Here are some posts about the issue:

We hope to improve how this is handled soon.