Can't Sync to Anki Hub

The category for general support questions related to using AnkiHub.

Things not to ask about here:

Please include supporting information and documents such as screenshots, recordings, etc.

Unable to Sync to AnkiHub! I keep getting this error for the last two days:

image

I have tried redownloading the add-on, signing in and out of the account multiple times, restarting Anki, and restarting my computer. I’ve also used Check Database and update add-on with continuing error. It is definitely not an internet connection issue. Please help!

I’ve copied the error code below. Thank you!

Anki 25.07.5 (7172b2d2) (ao)

Python 3.13.5 Qt 6.9.1 PyQt 6.9.1

Platform: Windows-11-10.0.26100-SP0

Traceback (most recent call last):

File “C:\Users\nguye\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 276, in _send_request_with_retry

return send_with_retry()

File “C:\Users\nguye\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\_init_.py”, line 289, in wrapped_f

return self(f, *args, **kw)

File “C:\Users\nguye\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\_init_.py”, line 379, in _call_

do = self.iter(retry_state=retry_state)

File “C:\Users\nguye\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\_init_.py”, line 326, in iter

raise retry_exc from fut.exception()

tenacity.RetryError: RetryError[<Future at 0x277b5126ad0 state=finished raised ReadTimeout>]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File “C:\Users\nguye\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 280, in _send_request_with_retry

response = last_attempt.result()

File “C:\Users\nguye\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py”, line 449, in result

return self.__get_result()

~~~~~~~~~~~~~~~~~^^

File “C:\Users\nguye\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py”, line 401, in __get_result

raise self._exception

File “C:\Users\nguye\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\_init_.py”, line 382, in _call_

result = fn(*args, **kwargs)

File “C:\Users\nguye\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 273, in send_with_retry

return self.thread_local_session.get().send(request, stream=stream, timeout=timeout)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:\Users\nguye\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\requests\sessions.py”, line 703, in send

r = adapter.send(request, **kwargs)

File “C:\Users\nguye\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\requests\adapters.py”, line 713, in send

raise ReadTimeout(e, request=request)

requests.exceptions.ReadTimeout: HTTPSConnectionPool(host=‘app.ankihub.net’, port=443): Read timed out. (read timeout=10)

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

Traceback (most recent call last):

File “C:\Users\nguye\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\thread.py”, line 59, in run

result = self.fn(*self.args, **self.kwargs)

File “C:\Users\nguye\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\operations\_init_.py”, line 243, in wrapped_op

return self._op(mw.col)

~~~~~~~~^^^^^^^^

File “C:\Users\nguye\AppData\Roaming\Anki2\addons21\1322529746\gui\errors.py”, line 104, in

op=lambda _: _upload_logs(key),

~~~~~~~~~~~~^^^^^

File “C:\Users\nguye\AppData\Roaming\Anki2\addons21\1322529746\gui\errors.py”, line 579, in _upload_logs

client.upload_logs(

~~~~~~~~~~~~~~~~~~^

file=log_file_path(),

^^^^^^^^^^^^^^^^^^^^^

key=key,

^^^^^^^^

)

^

File “C:\Users\nguye\AppData\Roaming\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 “C:\Users\nguye\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 967, in _presigned_url_suffix_from_key

response = self._send_request(

“GET”,

…<2 lines>…

params={“key”: key, “type”: action, “many”: “false”},

)

File “C:\Users\nguye\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 239, in _send_request

return self._send_request_with_retry(

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

prepped,

^^^^^^^^

…<2 lines>…

is_long_running=is_long_running,

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

)

^

File “C:\Users\nguye\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 282, 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): Read timed out. (read timeout=10)

1 Like

I’ll help you with your AnkiHub sync issue. Let me search for some relevant information that might help solve this problem.

Search

Found 0 results for 'tags:official ankihub connection timeout firewall'

Search

Found 0 results for 'tags:official ankihub sync timeout'

Search

Found 0 results for 'tags:official connection timeout'

Search

Found 4 results for 'tags:official sync error'

Read topic

Reading: "Syncing failed, because your email address needs to be (re)confirmed. Please visit ankiweb.net, and log in as ___ to proceed"

Read topic

Reading: 🙋 Getting Help

Hi Chirinxx,

I can see you’re having trouble connecting to AnkiHub with a timeout error. Based on the error message you’re seeing (HTTPSConnectionPool(host='app.ankihub.net', port=443): Read timed out. (read timeout=10)), this appears to be a connection issue.

Although you’ve mentioned it’s not an internet connection issue, the timeout error suggests that your computer can’t establish or maintain a connection to the AnkiHub servers.

Here are some potential solutions:

1. Check your firewall or antivirus settings

The most common cause of these timeout errors is firewall or antivirus software blocking Anki’s connections. Your firewall may be preventing Anki from connecting to app.ankihub.net.

  • Try temporarily disabling your firewall/antivirus to test if this is the issue
  • Add an exception for Anki in your firewall settings
  • Make sure outbound connections to *.ankihub.net are allowed

2. Network restrictions

If you’re on a work, school, or public network, there might be network restrictions in place:

  • Try connecting through a different network (like mobile hotspot)
  • Contact your network administrator if you’re on a restricted network

3. Proxy settings

  • Check if you need to configure proxy settings for your connection

4. Clear browser cookies and cache

  • Since AnkiHub authentication uses your browser, try clearing cookies and cache

5. Alternative troubleshooting

  • Try using Anki with all other add-ons disabled (hold Shift while starting Anki)
  • Verify your internet connection can reach other services reliably

If you’ve tried these steps and still face issues, please let me know what you’ve attempted specifically, and I can help troubleshoot further.

Clearing my browser cookies and cache worked!

I’ll search for information about connection issues with AnkiHub.

Search

Found 0 results for 'tags:official ankihub connection issues timeout browser cookies cache'

Search

Found 0 results for 'tags:official connection browser cookies cache'

I’m glad to hear that clearing your browser cookies and cache resolved your issue!

This is actually a common solution for authentication-related problems with AnkiHub. Since the AnkiHub add-on authenticates through your browser, cached credentials or cookies can sometimes interfere with the connection process between Anki and AnkiHub’s servers.

For anyone else experiencing similar timeout errors when trying to sync with AnkiHub, here’s why this solution works:

  • AnkiHub uses browser-based authentication
  • Outdated or corrupted cookies can prevent proper authentication
  • Clearing browser data refreshes the authentication process
  • This allows AnkiHub to establish a new, clean connection

Thanks for sharing what worked for you - this will help other community members who might encounter similar issues in the future!

If you run into any other problems with AnkiHub, don’t hesitate to ask.

1 Like

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