Error details: ⁨error sending request for url (): error trying to connect: operation timed out⁩

Dan's Avatar


01 Jun, 2020 04:06 PM

This issue occurred after I update from 2.1.20 to 2.1.22.

During media sync:
Tue Jun 2 00:00:47 2020: Media sync starting...
Tue Jun 2 00:01:17 2020: Connection timed out. Please try again on a different network.

Error details: ⁨error sending request for url (): error trying to connect: operation timed out⁩

This is pretty weird cause all the text has been successfully synced but the pictures.
My android phone could receive all the content except the pictures.

  1. 1 Posted by addons_zz on 01 Jun, 2020 04:33 PM

    addons_zz's Avatar

    Can you try to update to the latest Anki version from and then use Tools > Check Database and run sync again?

  2. 2 Posted by Dan on 02 Jun, 2020 02:43 AM

    Dan's Avatar

    Updated to 2.1.26 and checked the database and checked media. The issue persists.

    I tried to install 2.1.20/22 again but failed to load the collection file. Does this relate to the issue?

  3. 3 Posted by Dan on 02 Jun, 2020 02:52 AM

    Dan's Avatar

    I just check my laptop (win7 x64) with Anki 2.1.25. Same issue happens, which didn't appear about a month ago.

    I tried both cable network and 4G network, same issues.

  4. 4 Posted by addons_zz on 02 Jun, 2020 03:00 AM

    addons_zz's Avatar

    Please see When problems occur

    Did you downgrade your Anki version? Please read the warning at

    After using the latest version, if you wish to open your collection with an earlier Anki release, please go to the File>Switch Profile menu item, and click on “Downgrade & Quit”. If you skip this step, you may get an error message when opening your collection in an older Anki version, and you will need to return to this version, downgrade, then try again.

  5. 5 Posted by Dan on 02 Jun, 2020 03:04 AM

    Dan's Avatar

    I've find similar post here

    The issue persists and I believe it is not related to addons.

  6. Support Staff 6 Posted by Damien Elmes on 02 Jun, 2020 10:16 AM

    Damien Elmes's Avatar

    Dan: 'operation timed out' means Anki can't connect to AnkiWeb. The most likely cause is antivirus or firewall software on your machine blocking Anki, or a work/school environment that requires a proxy.

  7. 7 Posted by Dan on 02 Jun, 2020 12:49 PM

    Dan's Avatar

    Damien: The issue could be fixed by downgrading anki 2.1.26 to 2.1.20

    On anki 2.1.20 both text and media could be sync on the small messagebox.
    On anki 2.1.22/25/26 text sync on small messagebox and media are synced on "Media Sync Log" messagebox, where the issue happens.

    On anki 2.1.20 text and media are synced successfully.
    On anki 2.1.22/25/26 Text are synced successfully. Media couldn't be synced. (Though Media was synced successfully once or twice, in most condition, there are error of "operation timed out")

    PS: I just register another account and could be synced for once and failed to sync later....

  8. Support Staff 8 Posted by Damien Elmes on 03 Jun, 2020 10:15 AM

    Damien Elmes's Avatar

    The media syncing uses different network libraries - perhaps you need to specify a proxy/VPN manually:

  9. 9 Posted by Dan on 03 Jun, 2020 11:31 AM

    Dan's Avatar

    FIXED !

    I add an environment variable
    name: HTTPS_PROXY
    value: http://@
    (I figured out the name and password is not needed, don't know why)

    I use proxy app cause I live in China and could not sync without proxy. (HTTP [email blocked].0.1:10809)
    Here are what I find:
    ①In version 2.1.20 + Internet LAN proxy is set + no environment variables → Proxy app successfully caught the request and sync successfully

    2020/06/03 19:14:08 tcp: accepted [proxy]

    ②In version 2.1.22 or above + Internet LAN proxy is set + no environment variables → Proxy app caught only 1 request and could only sync text. no media syncs

    ③In version 2.1.22 or above + Internet LAN proxy is set or closed + environment variables is set → Proxy app caught 2 requests and could sync both text and media

    2020/06/03 19:16:58 tcp: accepted [proxy]
    2020/06/03 19:17:00 tcp: accepted [proxy]

    Wed Jun 3 19:17:00 2020: Media sync starting...
    Wed Jun 3 19:17:01 2020: Added: ⁨0⁩↑ ⁨0⁩↓, Removed: ⁨0⁩↑ ⁨0⁩↓, Checked: ⁨0⁩
    Wed Jun 3 19:17:01 2020: Media sync complete.

    One more question: will environment variables affect my other desktop apps? will they also be automatically proxied?

    Thanks for your patience.

    I can't open the link in the manual:
    It says:
    Access Denied
    You don't have permission to access "" on this server.

  10. Support Staff 10 Posted by Damien Elmes on 04 Jun, 2020 10:41 AM

    Damien Elmes's Avatar

    Thanks Dan, I'll update the link.

Comments are closed, but you can start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac