Syncing error on first install

Error message (don't change this)
Anki 25.02 (038d85b1)  (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\Strife\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 286, in _send_request_with_retry
    return send_with_retry()

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

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

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

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


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

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

  File "C:\Users\Strife\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 698, in send

requests.exceptions.SSLError: HTTPSConnectionPool(host='ankihub.s3.amazonaws.com', port=443): Max retries exceeded with url: /deck_2fb041b2-1c29-4a81-a51a-31ee822984c8_notes.csv.gz?response-content-disposition=attachment&AWSAccessKeyId=AKIASSGURO7AU2A7QZOX&Signature=rZWQ7Yd7ua%2FYHpwyifiEsziO3cY%3D&Expires=1745345071 (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 "C:\Users\Strife\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\Strife\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\Strife\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 673, in download_deck
    s3_response_content = self._download_with_progress_cb(

  File "C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 703, in _download_with_progress_cb
    with self._send_request(

  File "C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 243, in _send_request
    return self._send_request_with_retry(

  File "C:\Users\Strife\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='ankihub.s3.amazonaws.com', port=443): Max retries exceeded with url: /deck_2fb041b2-1c29-4a81-a51a-31ee822984c8_notes.csv.gz?response-content-disposition=attachment&AWSAccessKeyId=AKIASSGURO7AU2A7QZOX&Signature=rZWQ7Yd7ua%2FYHpwyifiEsziO3cY%3D&Expires=1745345071 (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 144, in _on_closures_pending

  File "C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\gui\decks_dialog.py", line 284, in on_done
    future.result()

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

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

  File "C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py", line 39, in wrapper
    return func(*args, **kwargs)

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

  File "C:\Users\Strife\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\Strife\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 76, in <lambda>
    task=lambda: _download_and_install_decks_inner(

  File "C:\Users\Strife\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 2fb041b2-1c29-4a81-a51a-31ee822984c8: AnkiHub request exception: HTTPSConnectionPool(host='ankihub.s3.amazonaws.com', port=443): Max retries exceeded with url: /deck_2fb041b2-1c29-4a81-a51a-31ee822984c8_notes.csv.gz?response-content-disposition=attachment&AWSAccessKeyId=AKIASSGURO7AU2A7QZOX&Signature=rZWQ7Yd7ua%2FYHpwyifiEsziO3cY%3D&Expires=1745345071 (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)

Hello,

Please follow this tutorial and see if the issue goes away:

  1. Open https://app.ankihub.net/ in Microsoft Edge.
  2. Click the lock icon in the address bar then click on “Connection is secure”

  1. Click on the icon to the right

  1. Go to the Details tab and click the Export button

  1. Save the file somewhere (e.g. Downloads or Desktop)

  1. Open the file then click the Install Certificate button.

  1. Accept the default options by clicking Next

  1. After clicking Finish the following message should appear and you should now be able to log in to AnkiHub in the add-on.

If the above solution doesn’t work for you, please install the latest Windows updates

If you still continue to have problems, please don’t hesitate to ask for help! :blush:

I have followed all the above mentioned steps, but the issue still persists. I am gonna send you the error message.

Anki 25.02 (038d85b1) (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\Strife\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 286, in _send_request_with_retry
return send_with_retry()

File “C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity_init_.py”, line 289, in wrapped_f
return self(f, *args, **kw)

File “C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity_init_.py”, line 379, in call
do = self.iter(retry_state=retry_state)

File “C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity_init_.py”, line 326, in iter
raise retry_exc from fut.exception()

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File “C:\Users\Strife\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\Strife\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity_init_.py”, line 382, in call
result = fn(*args, **kwargs)

File “C:\Users\Strife\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 698, in send

requests.exceptions.SSLError: HTTPSConnectionPool(host=‘ankihub.s3.amazonaws.com’, port=443): Max retries exceeded with url: /deck_2fb041b2-1c29-4a81-a51a-31ee822984c8_notes.csv.gz?response-content-disposition=attachment&AWSAccessKeyId=AKIASSGURO7AU2A7QZOX&Signature=P3LUlim36FLZyc7B3X5b9pDaRsg%3D&Expires=1745419514 (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 “C:\Users\Strife\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\Strife\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\Strife\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 673, in download_deck
s3_response_content = self._download_with_progress_cb(

File “C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 703, in _download_with_progress_cb
with self._send_request(

File “C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 243, in _send_request
return self._send_request_with_retry(

File “C:\Users\Strife\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=‘ankihub.s3.amazonaws.com’, port=443): Max retries exceeded with url: /deck_2fb041b2-1c29-4a81-a51a-31ee822984c8_notes.csv.gz?response-content-disposition=attachment&AWSAccessKeyId=AKIASSGURO7AU2A7QZOX&Signature=P3LUlim36FLZyc7B3X5b9pDaRsg%3D&Expires=1745419514 (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 144, in _on_closures_pending

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

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

File “C:\Users\Strife\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\Strife\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 76, in
task=lambda: _download_and_install_decks_inner(

File “C:\Users\Strife\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 2fb041b2-1c29-4a81-a51a-31ee822984c8: AnkiHub request exception: HTTPSConnectionPool(host=‘ankihub.s3.amazonaws.com’, port=443): Max retries exceeded with url: /deck_2fb041b2-1c29-4a81-a51a-31ee822984c8_notes.csv.gz?response-content-disposition=attachment&AWSAccessKeyId=AKIASSGURO7AU2A7QZOX&Signature=P3LUlim36FLZyc7B3X5b9pDaRsg%3D&Expires=1745419514 (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)’)))

p.s : my windows is up-to-date.

  • Do you have a different network you can try connecting to and see if that solves the issue?
  • Check if you have any proxy servers configured: https://www.youtube.com/watch?v=t-xZZlN-zBg
  • If you have any firewall/VPN software, try disabling that.
1 Like

Thank you for your quick response. I have tried everything you’ve said, but still getting error. Here’s the error message:

Anki 25.02 (038d85b1) (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\Strife\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 286, in _send_request_with_retry
return send_with_retry()

File “C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity_init_.py”, line 289, in wrapped_f
return self(f, *args, **kw)

File “C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity_init_.py”, line 379, in call
do = self.iter(retry_state=retry_state)

File “C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity_init_.py”, line 326, in iter
raise retry_exc from fut.exception()

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File “C:\Users\Strife\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\Strife\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity_init_.py”, line 382, in call
result = fn(*args, **kwargs)

File “C:\Users\Strife\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 698, in send

requests.exceptions.SSLError: HTTPSConnectionPool(host=‘ankihub.s3.amazonaws.com’, port=443): Max retries exceeded with url: /deck_2fb041b2-1c29-4a81-a51a-31ee822984c8_notes.csv.gz?response-content-disposition=attachment&AWSAccessKeyId=AKIASSGURO7AU2A7QZOX&Signature=xFMAOeAdlxwUJA0C2PwxekB%2BEa4%3D&Expires=1745429596 (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 “C:\Users\Strife\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\Strife\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\Strife\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 673, in download_deck
s3_response_content = self._download_with_progress_cb(

File “C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 703, in _download_with_progress_cb
with self._send_request(

File “C:\Users\Strife\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 243, in _send_request
return self._send_request_with_retry(

File “C:\Users\Strife\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=‘ankihub.s3.amazonaws.com’, port=443): Max retries exceeded with url: /deck_2fb041b2-1c29-4a81-a51a-31ee822984c8_notes.csv.gz?response-content-disposition=attachment&AWSAccessKeyId=AKIASSGURO7AU2A7QZOX&Signature=xFMAOeAdlxwUJA0C2PwxekB%2BEa4%3D&Expires=1745429596 (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 144, in _on_closures_pending

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

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

File “C:\Users\Strife\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\Strife\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 76, in
task=lambda: _download_and_install_decks_inner(

File “C:\Users\Strife\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 2fb041b2-1c29-4a81-a51a-31ee822984c8: AnkiHub request exception: HTTPSConnectionPool(host=‘ankihub.s3.amazonaws.com’, port=443): Max retries exceeded with url: /deck_2fb041b2-1c29-4a81-a51a-31ee822984c8_notes.csv.gz?response-content-disposition=attachment&AWSAccessKeyId=AKIASSGURO7AU2A7QZOX&Signature=xFMAOeAdlxwUJA0C2PwxekB%2BEa4%3D&Expires=1745429596 (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)’)))

This points to some problem in your system. The solutions we provided worked for the vast majority of users affected with similar issues. We have a potential fix we’ll implement in a future add-on release, but it’s not a priority for now.

@abir_ghosh_13 Can you test the solution here and let me know if it works for you?