Error While Trying to Sync

Recently just purchased a subscription to AnkiHub, previously used AnKing V11 and wanted to update to V12. Whenever I try to sync from AnkiHub I keep getting this error around 10-15mins into syncing.

Anki 2.1.66 (70506aeb) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-14.0-arm64-arm-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-11-10 00:03:43

Traceback (most recent call last):

  File "/Users/muneeb/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 117, in _download_and_install_decks_inner
    result.append(_download_and_install_single_deck(ah_did))

  File "/Users/muneeb/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 141, in _download_and_install_single_deck
    notes_data: List[NoteInfo] = AnkiHubClient().download_deck(

  File "/Users/muneeb/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 615, in download_deck
    s3_response_content = self._download_with_progress_cb(

  File "/Users/muneeb/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 644, in _download_with_progress_cb
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 403 Forbidden


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


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 "/Users/muneeb/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 41, in on_install_done
    on_done(future_with_exception(e))

  File "/Users/muneeb/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/muneeb/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/muneeb/Library/Application Support/Anki2/addons21/1322529746/gui/decks_dialog.py", line 248, in on_done
    future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "/Users/muneeb/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 39, 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/muneeb/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 69, in <lambda>
    task=lambda: _download_and_install_decks_inner(ankihub_dids),

  File "/Users/muneeb/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 129, in _download_and_install_decks_inner
    raise exceptions[0]

1322529746.gui.exceptions.DeckDownloadAndInstallError: Error while downloading and installing deck e77aedfe-a636-40e2-8169-2fce2673187e: AnkiHub request error: 403 Forbidden

Can you try logging out of your account from AnkiHub > Sign out then logging in again?

Just tried it and still getting an error.

@muneebc Do you perhaps have a slow internet connection?

@ProductTeam Looks like download from S3 is failing for this user: Sign In | Sentry
I suspect it’s related to the link’s expiration time.