# Custom sync server - reverse proxy issue in 2.1.61/2.1.62

**URL:** <https://forums.ankiweb.net/t/custom-sync-server-reverse-proxy-issue-in-2-1-61-2-1-62/30095>\
**Category:** Help\
**Created:** [May 7, 2023, 9:59am UTC](https://forums.ankiweb.net/t/custom-sync-server-reverse-proxy-issue-in-2-1-61-2-1-62/30095 "2023-05-07T09:59:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![justonce01](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@justonce01](https://forums.ankiweb.net/u/justonce01)\
**Post date:** [May 7, 2023, 9:59am UTC](https://forums.ankiweb.net/t/custom-sync-server-reverse-proxy-issue-in-2-1-61-2-1-62/30095/1 "2023-05-07T09:59:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [May 8, 2023, 5:20am UTC](https://forums.ankiweb.net/t/custom-sync-server-reverse-proxy-issue-in-2-1-61-2-1-62/30095/2 "2023-05-08T05:20:15Z")

</div>

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](https://github.com/ankitects/anki/pull/2490)

---

<div class="post-metadata">

**Author:** ![justonce01](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@justonce01](https://forums.ankiweb.net/u/justonce01)\
**Post date:** [May 8, 2023, 8:11am UTC](https://forums.ankiweb.net/t/custom-sync-server-reverse-proxy-issue-in-2-1-61-2-1-62/30095/3 "2023-05-08T08:11:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [June 7, 2023, 8:12am UTC](https://forums.ankiweb.net/t/custom-sync-server-reverse-proxy-issue-in-2-1-61-2-1-62/30095/4 "2023-06-07T08:12:51Z")

</div>

Closed on June 7, 2023, 8:12am UTC

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