Downloading deck dialogue forever, stuck

Before the error happened, I was…
[Replace this text.]
I synced the deck

Error message (don't change this)
Anki 24.06.3 (d678e393)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-14.6.1-arm64-arm-64bit

Traceback (most recent call last):

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

  File "/Users/Jacob/Library/Application Support/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 "/Users/Jacob/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 39, in wrapper
    return func(*args, **kwargs)

  File "/Users/Jacob/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 118, in _on_sync_done
    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/Jacob/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 110, in <lambda>
    task=lambda: ah_deck_updater.update_decks_and_media(to_sync_ah_dids),

  File "/Users/Jacob/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 61, in update_decks_and_media
    self._update_decks(ah_dids)

  File "/Users/Jacob/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 91, in _update_decks
    raise e

  File "/Users/Jacob/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 84, in _update_decks
    should_continue = self._update_single_deck(ah_did)

  File "/Users/Jacob/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 98, in _update_single_deck
    result = self._fetch_and_apply_deck_updates(ankihub_did)

  File "/Users/Jacob/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 120, in _fetch_and_apply_deck_updates
    deck_updates = self._client.get_deck_updates(

  File "/Users/Jacob/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 735, in get_deck_updates
    for chunk in self._get_deck_updates_inner(

  File "/Users/Jacob/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 802, in _get_deck_updates_inner
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 500 Internal Server Error

Sentry link (for developers)

Before the error happened, I was…
Syncing with AnkiHub; “Downloading deck…” popup box will never complete, and then error box will appear. Deck is AnKing Overhaul for S1 & S2.

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.19045

Traceback (most recent call last):

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 255, in _send_request_with_retry
    response = self._send_request_with_retry_inner(

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\__init__.py", line 289, in wrapped_f
    return self(f, *args, **kw)

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\__init__.py", line 379, in __call__
    do = self.iter(retry_state=retry_state)

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\__init__.py", line 326, in iter
    raise retry_exc from fut.exception()

tenacity.RetryError: RetryError[<Future at 0x23756caee50 state=finished raised ReadTimeout>]


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 263, in _send_request_with_retry
    response = last_attempt.result()

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

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

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\__init__.py", line 382, in __call__
    result = fn(*args, **kwargs)

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 276, in _send_request_with_retry_inner
    return self.thread_local_session.get().send(

  File "requests.sessions", line 703, in send

  File "requests.adapters", line 532, in send

requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='app.ankihub.net', port=443): Read timed out. (read timeout=20)


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\M\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\M\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py", line 39, in wrapper
    return func(*args, **kwargs)

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 118, in _on_sync_done
    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\M\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 110, in <lambda>
    task=lambda: ah_deck_updater.update_decks_and_media(to_sync_ah_dids),

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 61, in update_decks_and_media
    self._update_decks(ah_dids)

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 84, in _update_decks
    should_continue = self._update_single_deck(ah_did)

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 98, in _update_single_deck
    result = self._fetch_and_apply_deck_updates(ankihub_did)

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 120, in _fetch_and_apply_deck_updates
    deck_updates = self._client.get_deck_updates(

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 735, in get_deck_updates
    for chunk in self._get_deck_updates_inner(

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 820, in _get_deck_updates_inner
    yield from self._get_deck_updates_inner(

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 820, in _get_deck_updates_inner
    yield from self._get_deck_updates_inner(

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 820, in _get_deck_updates_inner
    yield from self._get_deck_updates_inner(

  [Previous line repeated 69 more times]

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 795, in _get_deck_updates_inner
    response = self._send_request(

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 237, in _send_request
    response = self._send_request_with_retry(

  File "C:\Users\M\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 265, in _send_request_with_retry
    raise AnkiHubRequestException(e) from e

1322529746.ankihub_client.ankihub_client.AnkiHubRequestException: AnkiHub request exception: HTTPSConnectionPool(host='app.ankihub.net', port=443): Read timed out. (read timeout=20)

Sentry link (for developers)

It’s happening here as well. It uses a ton of system memory (70+gb) and then I have to force quit Anki (MacOS) entirely. When I disabled the AnkiHub addon, my Anki syncs fine, which definitively points to the AnkiHub addon being the issue

1 Like

We created an urgent issue for this. The add-on is repeatedly trying to download the deck for some reason. Unfortunately, we may not be able to fix it until tomorrow morning. In the meantime, please exit from the Downloading deck... window and/or disable the add-on.

Follow these instructions to disable the add-on:

8 STEPS

1. The first step is to click Tools

2. Click Add-ons

3. Click AnkiHub

4. Click Toggle Enabled

5. Exit the window

6. Restart Anki

7. Cancel the deck download

8. That's it. You're done.

Tutorial completed.
Congratulations on finishing this tutorial.

Here's an interactive tutorial

** Best experienced in Full Screen (click the icon in the top right corner before you begin) **

https://www.iorad.com/player/2420425/Disable-AnkiHub

2 Likes

image

I have deleted and redownloaded the add-on and it has taken over 30 mins of just sitting there saying this. I have helped so many people download Anking decks and its never taken them this long.

1 Like

I came here to report the same issue. My entire anki has been freezing up today but only fixes when I delete the AnkiHub addon. Let me know if there’s a fix. Also my Ankihub optional tags are not updated or broken somehow

3 Likes

Hello,

There seems to be a glitch related to syncing that just popped up in the last few minutes. I’ve made the developer team aware of it so hopefully we’ll find a solution in short order. Sorry for the issue (it’s happening to me too) and thank you for your patience. :slight_smile:

In the meantime you can disable your Ankihub addon and Anki should run smoothly otherwise. I’ll have an update for you as soon as is possible.

2 Likes

It gets to the point where my computer is overloaded and is asking me to force quit an app since its out of memory:

1 Like

@andrew

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 24.06.3 (d678e393)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22621

Traceback (most recent call last):

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

  File "C:\Users\vitor\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\vitor\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py", line 39, in wrapper
    return func(*args, **kwargs)

  File "C:\Users\vitor\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 118, in _on_sync_done
    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\vitor\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 110, in <lambda>
    task=lambda: ah_deck_updater.update_decks_and_media(to_sync_ah_dids),

  File "C:\Users\vitor\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 61, in update_decks_and_media
    self._update_decks(ah_dids)

  File "C:\Users\vitor\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 84, in _update_decks
    should_continue = self._update_single_deck(ah_did)

  File "C:\Users\vitor\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 98, in _update_single_deck
    result = self._fetch_and_apply_deck_updates(ankihub_did)

  File "C:\Users\vitor\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 120, in _fetch_and_apply_deck_updates
    deck_updates = self._client.get_deck_updates(

  File "C:\Users\vitor\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 735, in get_deck_updates
    for chunk in self._get_deck_updates_inner(

  File "C:\Users\vitor\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 820, in _get_deck_updates_inner
    yield from self._get_deck_updates_inner(

  File "C:\Users\vitor\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 820, in _get_deck_updates_inner
    yield from self._get_deck_updates_inner(

  File "C:\Users\vitor\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 820, in _get_deck_updates_inner
    yield from self._get_deck_updates_inner(

  [Previous line repeated 125 more times]

  File "C:\Users\vitor\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 810, in _get_deck_updates_inner
    notes_data_deck = self.download_deck(

  File "C:\Users\vitor\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 672, in download_deck
    deck_csv_content = gzip.decompress(s3_response_content).decode("utf-8")

MemoryError

Sentry link (for developers)

I am also having this issue. please help!

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 24.06.3 (d678e393)  (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 "aqt.taskman", line 142, in _on_closures_pending

  File "C:\Users\ddlee\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\ddlee\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py", line 39, in wrapper
    return func(*args, **kwargs)

  File "C:\Users\ddlee\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 118, in _on_sync_done
    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\ddlee\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 110, in <lambda>
    task=lambda: ah_deck_updater.update_decks_and_media(to_sync_ah_dids),

  File "C:\Users\ddlee\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 61, in update_decks_and_media
    self._update_decks(ah_dids)

  File "C:\Users\ddlee\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 84, in _update_decks
    should_continue = self._update_single_deck(ah_did)

  File "C:\Users\ddlee\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 98, in _update_single_deck
    result = self._fetch_and_apply_deck_updates(ankihub_did)

  File "C:\Users\ddlee\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 120, in _fetch_and_apply_deck_updates
    deck_updates = self._client.get_deck_updates(

  File "C:\Users\ddlee\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 735, in get_deck_updates
    for chunk in self._get_deck_updates_inner(

  File "C:\Users\ddlee\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 820, in _get_deck_updates_inner
    yield from self._get_deck_updates_inner(

  File "C:\Users\ddlee\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 820, in _get_deck_updates_inner
    yield from self._get_deck_updates_inner(

  File "C:\Users\ddlee\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 820, in _get_deck_updates_inner
    yield from self._get_deck_updates_inner(

  [Previous line repeated 221 more times]

  File "C:\Users\ddlee\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 810, in _get_deck_updates_inner
    notes_data_deck = self.download_deck(

  File "C:\Users\ddlee\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 672, in download_deck
    deck_csv_content = gzip.decompress(s3_response_content).decode("utf-8")

MemoryError

Sentry link (for developers)

same thing my computer shows

I have an issue where I sync with ankihub and the popup window showing the download progress freezes near the end and crashes my anki. I have isolated it to the ankihub addon, but I don’t know which deck is causing the issue. I copied the debug file name below.

ankihub_addon_debug_info_0734d_1723678365.zip

1 Like

ankihub_addon_logs_0734d_1723679464.log

image

I have deleted and redownloaded the add-on and it has taken over 30 mins of just sitting there saying this. I have helped so many people download Anking decks and its never taken them this long.

1 Like

Before the error happened, I was trying to syc my cards

Error message (don't change this)
Anki 24.06.3 (d678e393)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-14.5-arm64-arm-64bit

Traceback (most recent call last):

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 255, in _send_request_with_retry
    response = self._send_request_with_retry_inner(

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/lib/tenacity/__init__.py", line 289, in wrapped_f
    return self(f, *args, **kw)

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/lib/tenacity/__init__.py", line 379, in __call__
    do = self.iter(retry_state=retry_state)

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/lib/tenacity/__init__.py", line 326, in iter
    raise retry_exc from fut.exception()

tenacity.RetryError: RetryError[<Future at 0xa1c2175e0 state=finished raised ReadTimeout>]


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 263, in _send_request_with_retry
    response = last_attempt.result()

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

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

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/lib/tenacity/__init__.py", line 382, in __call__
    result = fn(*args, **kwargs)

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 276, in _send_request_with_retry_inner
    return self.thread_local_session.get().send(

  File "requests.sessions", line 703, in send

  File "requests.adapters", line 635, in send

requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='app.ankihub.net', port=443): Read timed out. (read timeout=20)


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 "/Users/basseltekarli/Library/Application Support/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 "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 39, in wrapper
    return func(*args, **kwargs)

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 118, in _on_sync_done
    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/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 110, in <lambda>
    task=lambda: ah_deck_updater.update_decks_and_media(to_sync_ah_dids),

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 61, in update_decks_and_media
    self._update_decks(ah_dids)

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 84, in _update_decks
    should_continue = self._update_single_deck(ah_did)

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 98, in _update_single_deck
    result = self._fetch_and_apply_deck_updates(ankihub_did)

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 120, in _fetch_and_apply_deck_updates
    deck_updates = self._client.get_deck_updates(

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 735, in get_deck_updates
    for chunk in self._get_deck_updates_inner(

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 820, in _get_deck_updates_inner
    yield from self._get_deck_updates_inner(

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 820, in _get_deck_updates_inner
    yield from self._get_deck_updates_inner(

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 820, in _get_deck_updates_inner
    yield from self._get_deck_updates_inner(

  [Previous line repeated 120 more times]

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 795, in _get_deck_updates_inner
    response = self._send_request(

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 237, in _send_request
    response = self._send_request_with_retry(

  File "/Users/basseltekarli/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 265, in _send_request_with_retry
    raise AnkiHubRequestException(e) from e

1322529746.ankihub_client.ankihub_client.AnkiHubRequestException: AnkiHub request exception: HTTPSConnectionPool(host='app.ankihub.net', port=443): Read timed out. (read timeout=20)

Sentry link (for developers)

Hello, I am having this same problem now (August 2024). Anything I can do to fix it?

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 23.12.1 (1a1d4d54)  (ao)
Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-14.1.2-arm64-arm-64bit

Traceback (most recent call last):

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 255, in _send_request_with_retry
    response = self._send_request_with_retry_inner(

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/lib/tenacity/__init__.py", line 289, in wrapped_f
    return self(f, *args, **kw)

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/lib/tenacity/__init__.py", line 379, in __call__
    do = self.iter(retry_state=retry_state)

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/lib/tenacity/__init__.py", line 326, in iter
    raise retry_exc from fut.exception()

tenacity.RetryError: RetryError[<Future at 0x3726bc8b0 state=finished raised ReadTimeout>]


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 263, in _send_request_with_retry
    response = last_attempt.result()

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

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

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/lib/tenacity/__init__.py", line 382, in __call__
    result = fn(*args, **kwargs)

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 276, in _send_request_with_retry_inner
    return self.thread_local_session.get().send(

  File "requests.sessions", line 703, in send

  File "requests.adapters", line 532, in send

requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='app.ankihub.net', port=443): Read timed out. (read timeout=20)


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 "/Users/gabe/Library/Application Support/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 "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 39, in wrapper
    return func(*args, **kwargs)

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 118, in _on_sync_done
    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/gabe/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 110, in <lambda>
    task=lambda: ah_deck_updater.update_decks_and_media(to_sync_ah_dids),

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 61, in update_decks_and_media
    self._update_decks(ah_dids)

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 84, in _update_decks
    should_continue = self._update_single_deck(ah_did)

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 98, in _update_single_deck
    result = self._fetch_and_apply_deck_updates(ankihub_did)

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 120, in _fetch_and_apply_deck_updates
    deck_updates = self._client.get_deck_updates(

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 735, in get_deck_updates
    for chunk in self._get_deck_updates_inner(

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 795, in _get_deck_updates_inner
    response = self._send_request(

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 237, in _send_request
    response = self._send_request_with_retry(

  File "/Users/gabe/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 265, in _send_request_with_retry
    raise AnkiHubRequestException(e) from e

1322529746.ankihub_client.ankihub_client.AnkiHubRequestException: AnkiHub request exception: HTTPSConnectionPool(host='app.ankihub.net', port=443): Read timed out. (read timeout=20)

Sentry link (for developers)

**Before the error happened, I was just simply opening anki on my laptop.

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.22631

Traceback (most recent call last):

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

  File "C:\Users\hsara\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\hsara\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py", line 39, in wrapper
    return func(*args, **kwargs)

  File "C:\Users\hsara\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 75, in _sync_with_ankihub_inner
    subscribed_decks = client.get_deck_subscriptions()

  File "C:\Users\hsara\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 614, in get_deck_subscriptions
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 500 Internal Server Error

Sentry link (for developers)