Error sending request for url () during sync

Hi guys.

During syncing, a window popped up saying Connetion timeout, Error sending request for url ().

Information:

  1. The problem appeared tonight after i did some work in the app and was fine this morning. Same anki version, same addons. Only changes to the cards.
  2. Same account on my iphone still works and it’s syncing to past changes.
  3. No proxy. automatically detect setting is off.
  4. Anki is allowed in windows firewall.
  5. Tried reopen, restart computer and updating windows.
  6. Version ⁨25.02 (038d85b1)

Thanks for spending time trying to help me.

To help troubleshoot it, the following code can be run in the debug console to get the currentSyncURL and its ip address.

currentSyncUrl = mw.pm.profile.get("currentSyncUrl") or 'https://sync.ankiweb.net/'

print("-----------------------------------------")
print(f"The currentSyncUrl is '{currentSyncUrl}'")

hostname = currentSyncUrl.replace('https://', '').replace('/', '')

import socket

try:
    ip_address = socket.gethostbyname(hostname)
    print(f"The IP address of '{hostname}' is {ip_address}")
except socket.gaierror:
    print(f"Error: Hostname '{hostname}' could not be resolved.")

If it’s resolved successfully, the currentSyncURL can be opened in the web browser to check the connectivity.

If the web browser shows a blank page, then the connection was successful, the certificate is not expired and Anki should be able to sync too.

hi guys ive solved it. I just used cloudfare warp and that’s it.