You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error when trying to sync a file:
Fetching collection from Zotero... Done.
Fetching item list... Done.
Items to sync: 1
Traceback (most recent call last):
File "/home/luca/.local/bin/sync_zotero_rm", line 70, in
rm_items = rmapy.get_meta_items()
File "/home/luca/.local/lib/python3.8/site-packages/rmapy/api.py", line 180, in get_meta_items
for item in response.json():
File "/home/luca/.local/lib/python3.8/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3/dist-packages/simplejson/init.py", line 525, 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)
Any ideas?
The text was updated successfully, but these errors were encountered:
this happens to me from time to time too. I'm still not sure what is causing this and how to fix it. The reason seems to be in the rmapy library (or I'm using it wrong).
If this error happens, I make a single call to rmapi from command line. I.e. rmapi ls. This seems to refresh some cached token or something I am not aware of. (Log is saying ERROR: 2021/02/11 12:43:03 api.go:34: failed to fetch documents 401 Unauthorized Error; ERROR: 2021/02/11 12:43:03 main.go:30: retrying...)
I get the following error when trying to sync a file:
Fetching collection from Zotero... Done.
Fetching item list... Done.
Items to sync: 1
Traceback (most recent call last):
File "/home/luca/.local/bin/sync_zotero_rm", line 70, in
rm_items = rmapy.get_meta_items()
File "/home/luca/.local/lib/python3.8/site-packages/rmapy/api.py", line 180, in get_meta_items
for item in response.json():
File "/home/luca/.local/lib/python3.8/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3/dist-packages/simplejson/init.py", line 525, 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)
Any ideas?
The text was updated successfully, but these errors were encountered: