Skip to content
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

Unsure what this means, any help? #8

Open
alexanderosmith opened this issue Jun 23, 2021 · 1 comment
Open

Unsure what this means, any help? #8

alexanderosmith opened this issue Jun 23, 2021 · 1 comment

Comments

@alexanderosmith
Copy link

alexanderosmith commented Jun 23, 2021

I attempted to set this up using pcloud and when I ran it this is what the output was. I'm assuming this means it recognizes there are two pdfs to sync, but I'm not familiar with this code enough to trace back what the issue is. Any ideas?

user@ubuntuComputer:~/sync_zotero_remarkable$ sync_zotero_rm
Fetching collection from Zotero... Done.
Fetching item list... Done.
Items to sync: 2
Traceback (most recent call last):
File "/home/aos11409/.local/bin/sync_zotero_rm", line 70, in
rm_items = rmapy.get_meta_items()
File "/home/aos11409/.local/lib/python3.8/site-packages/rmapy/api.py", line 180, in get_meta_items
for item in response.json():
File "/usr/lib/python3/dist-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3/dist-packages/simplejson/init.py", line 518, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@dnlbauer
Copy link
Owner

dnlbauer commented Jun 25, 2021

Hi, seems like the problem is not on the side of zotero/your cloud, but from rmapy.
Since rmapy uses the same credentials als storage files rmapi is using, can you please confirm that you can access the device from command line with the rmapi command line interface (rmapi)?
If this works (or once you regenerated your api keys with rmapi), my script should also work.

I havent put a lot of work into the part that generates api keys etc, so this is the fix that usually works for me when rmapy fails to connect to the remarkable cloud. Let me know if this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants