Skip to content

org.JSONException: a JSONObject text must begin with '{' at character 1 of Anki Sync Server #27

@genedan

Description

@genedan

Hello,

First of all, thanks for your efforts in modernizing this package. I was prepared to spend a lot of time trying to learn the library and you have helped tremendously. I have gotten my server to work with Anki desktop through a https reverse proxy.

However, I'm having trouble with AnkiDroid. I am using version 2.13.3. Namely, this instruction in the README:

Use the same base url for both the Sync url and the Media sync url. Do not append /sync and /msync as the default setup does.

I have set up my fields as follows:

Sync url: https://myurl.com/

Media sync url: https://myurl.com/

However, when doing so, I get the following error upon media sync:

Screenshot_20200923-170248_AnkiDroid

The cards sync, so I am connecting to the server. However the media sync is where it fails.

A second observation is that despite the instructions telling me not to append my media sync url with 'mysnc', when I do that:

Media sync url: https://myurl.com/msync

It actually syncs. However it took 20 minutes to do so whereas with Tsudoko's version it used to take a second or two. I suspect it's crawling through my entire media folder of 47,000 files. See:

tsdko/anki-sync-server#26

Then again, that was fixed here:

e8f274e

I tried adding some media again and then it took just a second. So maybe this problem just happens after version upgrades or when setting up a new server or something like that. But I'm still appending 'msync' to my media sync url, so I'm wondering if that is indeed not the right thing to do.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions