Error when adding addon to 2nd device

Before the error happened, I was…
I added AnkiHub addon to a second device

Error message (don't change this)
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\shmue\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 123, in _download_and_install_decks_inner
    result.append(_download_and_install_single_deck(ah_did))

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

  File "C:\Users\shmue\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 624, in download_deck
    s3_response_content = self._download_with_progress_cb(

  File "C:\Users\shmue\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 653, 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 142, in _on_closures_pending

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

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

  File "C:\Users\shmue\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 45, in on_install_done
    on_done(future_with_exception(e))

  File "C:\Users\shmue\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 73, in <lambda>
    on_done=lambda future: on_new_deck_subscriptions_done(

  File "C:\Users\shmue\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 28, in on_new_deck_subscriptions_done
    on_done(future_with_exception(future.exception()))

  File "C:\Users\shmue\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py", line 101, in sync_with_ankiweb
    future.result()

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

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

  File "C:\Users\shmue\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 43, 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\shmue\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 72, in <lambda>
    task=lambda: _download_and_install_decks_inner(ankihub_dids),

  File "C:\Users\shmue\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 135, 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

Sentry link (for developers)

Are you still getting this?

No

But I also got a pop up asking me to install the decks (that we’re already installed)

What I ended up doing was installing but then did a forced sync from the ankiweb server and overwrote the changes that ankihub made when reinstalling the decks and now it works

@abdo.nh

User is getting this error:

nki 24.04 (429bc9e1) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22631

Traceback (most recent call last):

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

File “C:\Users\HP\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\HP\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 638, in download_deck
s3_response_content = self._download_with_progress_cb(

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

File “C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 99, in sync_with_ankiweb
future.result()

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

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

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

File “C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py”, line 88, in _on_new_deck_subscriptions_done
future.result()

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

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

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

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

File “C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 173, 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

Signing out and signing back in to the AnkiHub addon does not seem to fix the issue, lmk what your thoughts are

What’s the username?

Ahmedshah26

@ProductTeam Sentry report: Sign In | Sentry

This is caused by the S3 link expiring before the deck is downloaded. Maybe we can increase expiration time a bit just in case? We got some reports about this in the past.

@Ahmed7 I don’t have actionable advice for the user for now except downloading the deck with a faster connection.

1 Like