-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload from Anki desktop shows incorrect ID or password #108
Comments
I investigated into it a bit, and I'm suspecting that it's some issue on upstream, either Python's wsgiref or webob's wsgify. I spinned up a local server, and have Anki desktop connect to it, and use Wireshark to capture the packets. It seems to me that the |
Have you configured nginx? |
It doesn't matter. I setup a local server and it fails exactly the same way. |
Is this causing your trouble? |
Hmm... okay. I guess that's the reason then. On my server I'm not using nginx but caddy, I guess it doesn't rewrite the request as needed. |
It looks like Caddy doesn't really support reverse proxy to HTTP/1.0 and unchunk the request :( Is there a plan to replace webob? This situation is really unfortunate... I don't really want to add another layer of reverse proxy just to make Anki desktop and the sync server work together... |
Could you recommend an alternative? I'm not familiar with net-communication knowledge,We can try to work out together |
I'm not very familiar with network development in Python unfortunately. It seems #21 suggested that maybe it could instead use Twisted. I can probably help, but I would be hesitant to before someone from the project says they are open to accept such a change, as it's likely a nontrivial amount of time. |
It surely require a lot of time,I may be of help if there is a plan |
(FWIW, I eventually worked around it via using my local nginx server as a reverse proxy.) |
Caddy supports HTTP/1.0 and with
|
this seems not worked |
What is your setup? What is working, and what doesn't? If you do
do you get "Anki Sync Server"? What is the error you're seeing? |
|
Yes, my comment was more on
in case other people wanted to use Caddy and were thinking this was a problem. There is still need for that PR to support chunked requests, as most reverse proxies don't have the unchunk functionality. |
Hello, just in case it might help somebody else, I've got the same issue after installing Thanks a lot for your work, I didn't wanted to use the proprietary server, and I'm really happy to have an alternative. |
I'm trying Anki desktop 2.1.46, and syncing seems to go well, but when I do force uploading (either via ticking the "On next sync, force changes in one direction" on the Preferences, or doing something which requires that like removing a note type), it shows
and on the server side, the log shows
meanwhile if I trigger a force uploading from AnkiDroid, everything seems to be fine.
I've seen this mentioned in #54 and #97, but one is closed and another is marked "solved", however I couldn't find any clue on how this can be solved.
I've tried to pull the latest version of
anki-sync-server
, and tried upgrading theanki
on the server to 2.1.44, but neither seems to help. (Upgradinganki
to 2.1.46 makes the server fail to start, btw.)The text was updated successfully, but these errors were encountered: