“Could not connect to AnkiHub (no internet or the site is down for maintenance)”

Brand new user, just trying to download the Anking deck. I’ve signed up for a paid subscription and spent hours trying to work through all of your tutorials (lots of unclear information for a non-coder like me, or it doesn’t interface on my computer the way described, maybe because I have a windows). Can’t get the deck because of this error. I’ve tried reinstalling the add-on several times (there are a few different add-on codes on different parts of your site but I used 1322529746. I’ve tried restarting several times, logging out and back in, uninstalling and re-installing add-on. I’m using version 2.1. Not sure how to access this deck.

Error message (don't change this)
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0
Platform: Windows-10-10.0.19045
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-09-25 13:51:48

Traceback (most recent call last):

  File "C:\Users\KEW84\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 225, in _send_request_with_retry
    response = self._send_request_with_retry_inner(request, stream=stream)

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

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

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

tenacity.RetryError: RetryError[<Future at 0x23acda30280 state=finished raised SSLError>]


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "C:\Users\KEW84\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 231, 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\KEW84\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\__init__.py", line 382, in __call__
    result = fn(*args, **kwargs)

  File "C:\Users\KEW84\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 246, in _send_request_with_retry_inner
    response = session.send(request, stream=stream)

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

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

requests.exceptions.SSLError: HTTPSConnectionPool(host='ankihub.s3.amazonaws.com', port=443): Max retries exceeded with url: /ankihub_addon_logs_5fc75_1695664387.log?AWSAccessKeyId=AKIASSGURO7AU2A7QZOX&Signature=Kd3PI1zlB9tnWWOyWhUoqsvfAH4%3D&Expires=1695664567 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

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

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

  File "C:\Users\KEW84\AppData\Roaming\Anki2\addons21\1322529746\gui\menu.py", line 406, in _on_logs_uploaded
    log_file_name = 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\KEW84\AppData\Roaming\Anki2\addons21\1322529746\gui\errors.py", line 108, in <lambda>
    task=lambda: _upload_logs(key), on_done=on_done

  File "C:\Users\KEW84\AppData\Roaming\Anki2\addons21\1322529746\gui\errors.py", line 569, in _upload_logs
    client.upload_logs(

  File "C:\Users\KEW84\AppData\Roaming\Anki2\addons21\1322529746\addon_ankihub_client.py", line 75, in upload_logs
    s3_response = self._send_request("PUT", API.S3, s3_url_suffix, data=log_data)

  File "C:\Users\KEW84\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 211, in _send_request
    response = self._send_request_with_retry(prepped, stream=stream)

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

1322529746.ankihub_client.ankihub_client.AnkiHubRequestException: AnkiHub request exception: HTTPSConnectionPool(host='ankihub.s3.amazonaws.com', port=443): Max retries exceeded with url: /ankihub_addon_logs_5fc75_1695664387.log?AWSAccessKeyId=AKIASSGURO7AU2A7QZOX&Signature=Kd3PI1zlB9tnWWOyWhUoqsvfAH4%3D&Expires=1695664567 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))

Sentry link (for developers)

Does this solution help?

Can you also try syncing with a different network to help narrow down the issue?

Following as I am also having the same issue

Edit: I have a Mac and I have tried this on dofferent wifis, have restarted both anki and my computer, and have deleted and re-installed the Ankihub add-on. Currently using Anki version 2.1.65

The latest version of Anki (24.04) has a potential fix for this issue. Can you try it and let us know whether it works?

I did this and I’m still having the issue

Are you getting the same exact error? Can you use AnkiHub > Help > Upload logs and post the filename shown?