[GH-ISSUE #308] json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: #1736

Closed
opened 2026-03-01 17:53:15 +03:00 by kerem · 3 comments
Owner

Originally created by @UmutAlihan on GitHub (Jan 4, 2020).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/308

Describe the bug

I use the environmental variables to output the script into a specific dir. But the env variables cause the archivebox break ant throw the error below:

Steps to reproduce

My command script is as below:
#!/bin/bash
OUTPUT_DIR="/home/path/to/backup-bookmarks-firefox"
ARCHIVE_DIR="/home/script/path/bookmark-archiver"
TIMEOUT=300
env OUTPUT_DIR=$OUT_DIR ONLY_NEW=False TIMEOUT=300 FETCH_MEDIA=False $ARCHIVE_DIR/archive $ARCHIVE_DIR/bookmarks/bookmarks_*.html

Screenshots or log output

Traceback (most recent call last):
File "/home/uad/bookmark-archiver/archive", line 136, in
main(*sys.argv)
File "/home/uad/bookmark-archiver/archive", line 98, in main
update_archive_data(import_path=import_path, resume=resume)
File "/home/uad/bookmark-archiver/archive", line 106, in update_archive_data
all_links, new_links = load_links_index(out_dir=OUTPUT_DIR, import_path=import_path)
File "/home/uad/bookmark-archiver/archivebox/index.py", line 61, in load_links_index
existing_links = parse_json_links_index(out_dir)
File "/home/uad/bookmark-archiver/archivebox/index.py", line 108, in parse_json_links_index
links = json.load(f)['links']
File "/usr/lib/python3.5/json/init.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.5/json/init.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 55066 column 25 (char 2745250)

Software versions

  • OS: Ubuntu 16.04
  • ArchiveBox version: 94dba22
  • Python version: 3.5.2
  • Chrome version: Chromium 79.0.3945.79
Originally created by @UmutAlihan on GitHub (Jan 4, 2020). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/308 #### Describe the bug I use the environmental variables to output the script into a specific dir. But the env variables cause the archivebox break ant throw the error below: #### Steps to reproduce My command script is as below: #!/bin/bash <br> OUTPUT_DIR="/home/path/to/backup-bookmarks-firefox" <br> ARCHIVE_DIR="/home/script/path/bookmark-archiver" <br> TIMEOUT=300 <br> env OUTPUT_DIR=$OUT_DIR ONLY_NEW=False TIMEOUT=300 FETCH_MEDIA=False $ARCHIVE_DIR/archive $ARCHIVE_DIR/bookmarks/bookmarks_*.html #### Screenshots or log output Traceback (most recent call last): File "/home/uad/bookmark-archiver/archive", line 136, in <module> main(*sys.argv) File "/home/uad/bookmark-archiver/archive", line 98, in main update_archive_data(import_path=import_path, resume=resume) File "/home/uad/bookmark-archiver/archive", line 106, in update_archive_data all_links, new_links = load_links_index(out_dir=OUTPUT_DIR, import_path=import_path) File "/home/uad/bookmark-archiver/archivebox/index.py", line 61, in load_links_index existing_links = parse_json_links_index(out_dir) File "/home/uad/bookmark-archiver/archivebox/index.py", line 108, in parse_json_links_index links = json.load(f)['links'] File "/usr/lib/python3.5/json/__init__.py", line 268, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/usr/lib/python3.5/json/__init__.py", line 319, in loads return _default_decoder.decode(s) File "/usr/lib/python3.5/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.5/json/decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 55066 column 25 (char 2745250) #### Software versions - OS: Ubuntu 16.04 - ArchiveBox version: 94dba22 - Python version: 3.5.2 - Chrome version: Chromium 79.0.3945.79
kerem 2026-03-01 17:53:15 +03:00
Author
Owner

@UmutAlihan commented on GitHub (Mar 8, 2020):

issue still persists can't archive internet :/

<!-- gh-comment-id:596235932 --> @UmutAlihan commented on GitHub (Mar 8, 2020): issue still persists can't archive internet :/
Author
Owner

@pirate commented on GitHub (Mar 11, 2020):

Closing this in favor of https://github.com/pirate/ArchiveBox/issues/234

<!-- gh-comment-id:597613735 --> @pirate commented on GitHub (Mar 11, 2020): Closing this in favor of https://github.com/pirate/ArchiveBox/issues/234
Author
Owner

@UmutAlihan commented on GitHub (May 9, 2020):

I have deleted my archive and re-downloaded all the bookmarks.

Currently I don't have any issue..

<!-- gh-comment-id:626247161 --> @UmutAlihan commented on GitHub (May 9, 2020): I have deleted my archive and re-downloaded all the bookmarks. Currently I don't have any issue..
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#1736
No description provided.