Anking error

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

Error message (don't change this)
Anki 25.09.4 (d52ca669) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-26.5.1-arm64-arm-64bit-Mach-O

Traceback (most recent call last):

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

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

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

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


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

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

  File "/Users/caioperete/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "/Users/caioperete/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception

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

  File "/Users/caioperete/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 "/Users/caioperete/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)

  File "/Users/caioperete/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/requests/adapters.py", line 700, in send
    raise ConnectionError(e, request=request)

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='app.ankihub.net', port=443): Max retries exceeded with url: /api/decks/generate-presigned-url?key=ankihub_addon_logs_ocaioap_1781010356.log&type=upload&many=false (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x163f5ed50>: 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 "/Users/caioperete/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)

  File "/Users/caioperete/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/operations/__init__.py", line 243, in wrapped_op
    return self._op(mw.col)
           ~~~~~~~~^^^^^^^^

  File "/Users/caioperete/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 104, in <lambda>
    op=lambda _: _upload_logs(key),
                 ~~~~~~~~~~~~^^^^^

  File "/Users/caioperete/Library/Application Support/Anki2/addons21/1322529746/gui/errors.py", line 579, in _upload_logs
    client.upload_logs(
    ~~~~~~~~~~~~~~~~~~^
        file=log_file_path(),
        ^^^^^^^^^^^^^^^^^^^^^
        key=key,
        ^^^^^^^^
    )
    ^

  File "/Users/caioperete/Library/Application Support/Anki2/addons21/1322529746/addon_ankihub_client.py", line 81, in upload_logs
    s3_url_suffix = self._presigned_url_suffix_from_key(key=key, action="upload")

  File "/Users/caioperete/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 1011, in _presigned_url_suffix_from_key
    response = self._send_request(
        "GET",
    ...<2 lines>...
        params={"key": key, "type": action, "many": "false"},
    )

  File "/Users/caioperete/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 283, in _send_request
    return self._send_request_with_retry(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        prepped,
        ^^^^^^^^
    ...<2 lines>...
        is_long_running=is_long_running,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^

  File "/Users/caioperete/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/generate-presigned-url?key=ankihub_addon_logs_ocaioap_1781010356.log&type=upload&many=false (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x163f5ed50>: Failed to resolve 'app.ankihub.net' ([Errno 8] nodename nor servname provided, or not known)"))

Sentry link (for developers)

Hello,

First, please try restarting Anki to see if that resolves the problem.

Do you have any VPN or firewall software running? If so, please try disabling them. You can also try connecting to a different internet connection to see if it works.

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