Custom sync server - reverse proxy issue in 2.1.61/2.1.62

Anki is failing to sync in version 2.1.61 and 2.1.62 when using a custom sync server via a reverse proxy (Nginx with HTTPS). It works correctly on 2.1.60.

This is the error message it prints:

“A network error occurred.
Error details: error sending request for url (): connection error: unexpected end of file”

It is however syncing properly with 2.1.62 when connecting directly (without the reverse proxy). I am using the sync-server provided by Anki itself.

It works fine via nginx for me. If you’re binding a subpath, please see Fix sync client ignoring directories by XeR · Pull Request #2490 · ankitects/anki · GitHub

Yes, I forgot to mention that I’m using a sub-path (my-server . com/anki/).
I tested the fix and it seems to work now. Thanks.

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