sabidib / remarking

Remarking is an unofficial command line tool for extracting highlights from documents on your reMarkable tablet.
GNU General Public License v3.0
53 stars 2 forks source link

bug: Error message #14

Open AntonioBlaGra opened 2 years ago

AntonioBlaGra commented 2 years ago

Bug Report

remarking version:

0.1.4

Current behavior:

Error message

Polytheism ✔ Connected to RM cloud. [=== ] Retrieving cloud metadataTraceback (most recent call last): File "/home/toni/.local/lib/python3.8/site-packages/remarking/cli/cli.py", line 36, in _wrapper return main_command_func(args, kwargs) File "/home/toni/.local/lib/python3.8/site-packages/click/core.py", line 1053, in main rv = self.invoke(ctx) File "/home/toni/.local/lib/python3.8/site-packages/click/core.py", line 1659, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/toni/.local/lib/python3.8/site-packages/click/core.py", line 1659, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/toni/.local/lib/python3.8/site-packages/click/core.py", line 1395, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/toni/.local/lib/python3.8/site-packages/click/core.py", line 754, in invoke return __callback(args, *kwargs) File "/home/toni/.local/lib/python3.8/site-packages/click/decorators.py", line 26, in new_func return f(get_current_context(), args, kwargs) File "/home/toni/.local/lib/python3.8/site-packages/remarking/cli/writer_command_runner.py", line 110, in command documents, highlights = extract.run_extract( File "/home/toni/.local/lib/python3.8/site-packages/remarking/cli/extract.py", line 58, in run_extract documents, highlights = app.run_app(working_directory, collection_names) File "/home/toni/.local/lib/python3.8/site-packages/remarking/cli/app.py", line 43, in run_app document_metadata = self._get_cloud_document_metadata(collection_names) File "/home/toni/.local/lib/python3.8/site-packages/remarking/cli/app.py", line 118, in _get_cloud_document_metadata folder_objects = self._rmcloud.get_folders(collection_names) File "/home/toni/.local/lib/python3.8/site-packages/remarking/rmcloud.py", line 70, in get_folders items = self.get_meta_items() File "/home/toni/.local/lib/python3.8/site-packages/remarking/rmcloud.py", line 62, in get_meta_items return self._api_client.get_meta_items() File "/home/toni/.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)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/toni/.local/bin/remarking", line 8, in sys.exit(command_line()) File "/home/toni/.local/lib/python3.8/site-packages/click/core.py", line 1128, in call return self.main(*args, **kwargs) File "/home/toni/.local/lib/python3.8/site-packages/remarking/cli/cli.py", line 39, in _wrapper raise FileBugExceptionWrapper from exc remarking.cli.cli.FileBugExceptionWrapper: If you have run into an exception during normal usage please copy the exeption and then file a bug here: https://github.com/sabidib/remarking/issues/new/choose

Expected behavior:

Table creation

Steps to reproduce:

remarking run table --plain Polytheism