-
Notifications
You must be signed in to change notification settings - Fork 81
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
Error "missing field mod
at line 1 column 99" when initiating sync from client
#56
Comments
I am having the same issue and unfortunately no solution yet. However, I can provide some thoughts on it. Have you tried to sync with another application (e.g. AnkiDroid)? |
@hblr I just tried AnkiDroid and it appears to sync (albeit nothing since the server has nothing on it). But no 40X HTTP errors. Server output when I sync with AnkiDroid:
I'm guessing the number for the 'v' key in "Running meta..." above (and in the OP) is the protocol version? It's 9 for AnkiDroid, and 10 for the desktop client. I'm not sure what that means yet (or if I'm right). |
By looking into the source code, parameter v seems to be the sync protocol version and cv a more detailed client information string. |
@ndwarshuis |
Anki Desktop: 2.1.42 I've tried to use @levindu 's docker image. And It is OK for uploading, but fails to downloading. |
I finally got back to this and got it to work with Anki 2.1.35 (same build as in the OP). I tried uploading my local deck and nuking my local deck and redownloading it. All is well (no password issues or errors). @levindu was indeed correct in that it was old server code that was causing this bug. Simply updating the server fixed the bug I was originally having (and so far has not introduced any new bugs). Just to be clear for anyone else who stumbles upon this, I used anki-sync-server at commit 43f4934. This was somewhat arbitrary but I simply went forward in time from @levindu 's PR until it worked. I also used the docker-compose files from here (note the commit hash), and the only change I made was I added the following lines after
Obviously this could be simpler if I just pulled a version tag, but the latest version is from Dec 2020 and it didn't build correctly. |
For people like me finding this issue later: The Docker image URI has changed (that change is not reflected in the README of https://github.com/ankicommunity/anki-devops-services at time of writing). It is now available at https://hub.docker.com/r/ankicommunity/anki-sync-server (e.g. |
Observed behavior
After initiating sync in the Anki client, I see the following:
It also tells me my ID and password are incorrect.
In the server I see the following after making the request:
Server information
Anki sync server was set up using docker-compose:
And I have it reverse-proxied using nginx (minimal config):
User was created without error:
Client information
Debug output from Help > About
Contents of the ankisyncd addon:
The text was updated successfully, but these errors were encountered: