# Main problem?

**URL:** <https://community.ankihub.net/t/main-problem/460307>\
**Category:** 🐛 Bug\
**Tags:** add-on-error\
**Created:** [May 8, 2025, 3:01pm UTC](https://community.ankihub.net/t/main-problem/460307 "2025-05-08T15:01:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emansalama11223344](https://community.ankihub.net/letter_avatar_proxy/v4/letter/e/b3f665/32.png) [@emansalama11223344](https://community.ankihub.net/u/emansalama11223344)\
**Post date:** [May 8, 2025, 3:01pm UTC](https://community.ankihub.net/t/main-problem/460307/1 "2025-05-08T15:01:50Z")

</div>

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

> **Error message (don't change this)**
>
> ```auto
> Anki 25.02.4 (a5c33ad0) (ao)
> Python 3.9.18 Qt 6.6.2 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 286, in _send_request_with_retry
> return send_with_retry()
> 
> 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 0x25c80c3e0a0 state=finished raised ConnectTimeout>]
> 
> 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 290, 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 281, in send_with_retry
> return self.thread_local_session.get().send(
> 
> File "requests.sessions", line 703, in send
> 
> File "requests.adapters", line 688, in send
> 
> requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='app.ankihub.net', port=443): Max retries exceeded with url: /api/decks/e77aedfe-a636-40e2-8169-2fce2673187e/ (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0000025C80BE4070>, 'Connection to app.ankihub.net timed out. (connect timeout=5)'))
> 
> The above exception was the direct cause of the following exception:
> 
> Traceback (most recent call last):
> 
> File "C:\Users\m\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 173, in _download_and_install_decks_inner
> _download_and_install_single_deck(
> 
> File "C:\Users\m\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 202, in _download_and_install_single_deck
> notes_data: List[NoteInfo] = AnkiHubClient().download_deck(
> 
> File "C:\Users\m\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 665, in download_deck
> deck_info = self.get_deck_by_id(ah_did)
> 
> File "C:\Users\m\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 921, in get_deck_by_id
> response = self._send_request(
> 
> File "C:\Users\m\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 243, in _send_request
> return self._send_request_with_retry(
> 
> File "C:\Users\m\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 292, 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): Max retries exceeded with url: /api/decks/e77aedfe-a636-40e2-8169-2fce2673187e/ (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0000025C80BE4070>, 'Connection to app.ankihub.net timed out. (connect timeout=5)'))
> 
> The above exception was the direct cause of the following exception:
> 
> Traceback (most recent call last):
> 
> File "aqt.taskman", line 144, 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 120, 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\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\deck_installation.py", line 90, 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\m\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 76, in <lambda>
> task=lambda: _download_and_install_decks_inner(
> 
> File "C:\Users\m\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 192, 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 exception: HTTPSConnectionPool(host='app.ankihub.net', port=443): Max retries exceeded with url: /api/decks/e77aedfe-a636-40e2-8169-2fce2673187e/ (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0000025C80BE4070>, 'Connection to app.ankihub.net timed out. (connect timeout=5)'))
> 
> ```

[Sentry link (for developers)](https://ankihub.sentry.io/issues/?project=6546414&query=id:c5c1ad5f03894e6d902134575d4ac205)

---

<div class="post-metadata">

**Author:** ![Ahmed7](https://community.ankihub.net/user_avatar/community.ankihub.net/ahmed7/32/29859_2.png) [@Ahmed7](https://community.ankihub.net/u/Ahmed7)\
**Post date:** [May 8, 2025, 3:58pm UTC](https://community.ankihub.net/t/main-problem/460307/2 "2025-05-08T15:58:14Z")

</div>

Hello,

Can you try again and see if the error persists?
