Ankihub add-on error

Before the error happened, I just started Anki app on my mac.

Error message (don't change this)
Anki 25.02.5 (29192d15)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-26.2-arm64-arm-64bit

Traceback (most recent call last):

  File "/Users/jeenaqalandari/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 320, in _send_request_with_retry
    return send_with_retry()

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

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

  File "/Users/jeenaqalandari/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 0x14a2dcb80 state=finished raised ConnectionError>]


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/Users/jeenaqalandari/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 324, 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/jeenaqalandari/Library/Application Support/Anki2/addons21/1322529746/lib/tenacity/__init__.py", line 382, in __call__
    result = fn(*args, **kwargs)

  File "/Users/jeenaqalandari/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 317, in send_with_retry
    return self.thread_local_session.get().send(request, stream=stream, timeout=timeout)

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

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

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='app.ankihub.net', port=443): Max retries exceeded with url: /api/decks/subscriptions/ (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x14a2dca00>: Failed to resolve 'app.ankihub.net' ([Errno 8] nodename nor servname provided, or not known)"))


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 "aqt.taskman", line 88, in <lambda>

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

  File "aqt.operations", line 253, in wrapped_done

  File "/Users/jeenaqalandari/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 106, in <lambda>
    .failure(lambda e: on_done(future_with_exception(e)))

  File "/Users/jeenaqalandari/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 100, in sync_with_ankiweb
    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 "aqt.operations", line 243, in wrapped_op

  File "/Users/jeenaqalandari/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 102, in <lambda>
    op=lambda _: get_subscriptions_and_clean_up(),

  File "/Users/jeenaqalandari/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 89, in get_subscriptions_and_clean_up
    subscribed_decks = client.get_deck_subscriptions()

  File "/Users/jeenaqalandari/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 631, in get_deck_subscriptions
    response = self._send_request("GET", API.ANKIHUB, "/decks/subscriptions/")

  File "/Users/jeenaqalandari/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 283, in _send_request
    return self._send_request_with_retry(

  File "/Users/jeenaqalandari/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 326, 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/subscriptions/ (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x14a2dca00>: Failed to resolve 'app.ankihub.net' ([Errno 8] nodename nor servname provided, or not known)"))

Sentry link (for developers)

Hello,

This is almost certainly just a temporary network timeout and likely wonโ€™t be a recurring issue. Please try restarting Anki to see if that resolves the problem.

Additionally, do you have any VPN or firewall software running that might be interfering?

Hi,

This happens every time I start Anki for the past >6 months. I donโ€™t have a VPN anymore.

Can you test with the latest Anki version? There is a network-related fix in the latest releases (25.07+) thatโ€™s likely to solve your issue.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.