-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Description
I installed anki-sync-server on my personal server, and I set up a reverse proxy with Nginx so that the sync server is served on https://anki.thaega.fr, 443 port. As far as I can tell, it's running correctly server-side.
However, when I try to sync it with Anki Desktop (version 2.1.26), I get the error
Server not found. Either your connection is down, or antivirus/firewall software is blocking Anki from connecting to the internet.
and nothing shows up on the logs server-side.
The content of addons21/ankisyncd/__init__.py are
import anki.sync, anki.hooks, aqt
addr = "https://anki.thaega.fr" # put your server address here
anki.sync.SYNC_BASE = "%s" + addr
def resetHostNum():
aqt.mw.pm.profile['hostNum'] = None
anki.hooks.addHook("profileLoaded", resetHostNum)
I previously had made the mistake of leaving a trailing slash at the end of the address, which gave me the following error
Traceback (most recent call last):
File "aqt/sync.py", line 397, in run
File "aqt/sync.py", line 420, in _sync
File "anki/sync.py", line 571, in hostKey
File "json/__init__.py", line 357, in loads
File "json/decoder.py", line 337, in decode
File "json/decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
and left some trace in the logs server-side.
I can't log in either using AnkiDroid (without any error messages), however these login attemps do show up on the server logs.
Metadata
Metadata
Assignees
Labels
No labels