-
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
Anki desktop can't connect self-hosted server while ankiDroid could. #162
Comments
Hi @MacKenia, It looks like this line here is causing the issue for you: I've not seen this error before and it looks like AnkiDesktop version My AnkiDesktop is a bit older so I'll try and update it to see if I can reproduce this issue. In the meantime, I don't know your background but would you know how to add a print statement in the code to better understand what is causing that line to break? |
Thanks for your reply.
The Code i add: print(f"repeat:{repeat}\nbody:{body}") # <<< ADD HERE
items = re.split(repeat, body) This is a piece of ankiDroid's sync log:
And I also tried lower version like 2.1.63 and the problem stills there. |
I feel like this issue might be related to this issue: #158. There seems to be a new sync protocol that this server doesn't support yet. So I would suggest either using a AnkiDesktop version before 2.1.57 to see if that fixes your issue. The issue above also linked to the new official sync server which might interest you. Let me know what you end up doing while I try to investigate this further. |
Try to downgrade to 2.1.56. |
You can try the built-in sync server - https://docs.ankiweb.net/sync-server.html |
@sarsamurmu Thanks, It really solve my problem! |
My country has a slow connection with the ankiweb, so I decide to self-host it to instead. However I encounter a problem.
I hosted this server on ArchLinux with original config file with changing nothing.
python version:
Python 3.10.10
I got the anki-sync-server from github on 07-12.
I can access the server with AnkiDroid 2.15.6, while anki desktop 2.1.65 couldn't.
This log shows when Anki Desktop connect to the server:
How could I solve this problem?
The text was updated successfully, but these errors were encountered: