Anki sync/login fails on macOS Sonoma — “error sending request for url ()”
I’m using a 2018 Intel MacBook Air running macOS Sonoma 14.8.9.
Anki displays the following error whenever I attempt to log into AnkiWeb or sync:
A network error occurred. Error details: error sending request for url ()
I’ve tried Anki 26.09.3 and 24.11, including a fresh Anki profile, with the same result.
I’ve also tried:
-
Different Wi-Fi connections and an iPhone hotspot
-
Checking firewall, proxy, DNS and system date/time settings
-
Confirming iCloud Private Relay is disabled
-
Increasing Anki’s network timeout
I can log into AnkiWeb successfully through my browser.
Terminal curl tests to both https://sync.ankiweb.net and https://ankiweb.net/account/login return HTTP 200 with successful SSL certificate verification.
Anki 26.09.3 also reported an mpv audio component error involving libswiftCore.dylib, although I don’t know whether this is related.
Could someone please assist me in what else could cause this error?
The error message indicates there’s some sort of networking-related issue.
Please try all the usual network troubleshooting activities, including rebooting your computer and modem/router.
Thanks for your reply. I’ve already tried a number of network troubleshooting steps, including restarting my computer, using a mobile hotspot instead of Wi-Fi, changing DNS settings, checking firewall and proxy settings, and disabling iCloud Private Relay.
I’ve also tried different versions of Anki (26.09.3 and 24.11), creating a new profile and starting Anki in safe mode, but the same sync error persists.
I ran Terminal tests using curl, which confirmed connections to both syncdotankiwebdotnet and ankiwebdotnet, with HTTP 200 responses and successful SSL verification. I can also log into AnkiWeb through my browser without any issues.
Is there anything else you would recommend checking? I would really appreciate it as studying for surgical exams and need Anki!
I really don’t know how to fix this issue, but other ideas I had for things to try include:
- Flushing the DNS cache on the computer.
- Updating the security certificates on the computer.
These aren’t recommendations. They are just things that I thought of to possibly try. They are more advanced procedures, and I’m not sure if they will help.
Because of this, I’m not comfortable giving instructions for them. Sorry, but if you decide to try any of the procedures, you’ll have to do an internet search to learn how to do them.
I was also thinking that if the Anki developers could write and provide some sort of minimal Python/Rust script that performs the same sort of network connections as the Anki app, that script might be useful for testing these sorts of network issues. Perhaps just some script that makes a simple connection to the Anki server (and whatever other servers the app connects to), using the same libraries/methods as the Anki app. The script could even provide more debug information that might help troubleshoot at what point during the network connection the issues arise.