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

[lensdump][error] An unexpected error occurred: JSONDecodeError - Expecting value: line 1 column 1 (char 0). #6313

Open
calestyo opened this issue Oct 12, 2024 · 0 comments

Comments

@calestyo
Copy link

Hey.

With 1.27.5, I get the following:

$ gallery-dl --dest '.' --download-archive archive.sqlite --verbose -- 'https://lensdump.com/nielslauridsen' 
[gallery-dl][debug] Version 1.27.5
[gallery-dl][debug] Python 3.12.7 - Linux-6.11.2-amd64-x86_64-with-glibc2.40
[gallery-dl][debug] requests 2.32.3 - urllib3 2.0.7
[gallery-dl][debug] Configuration Files ['${HOME}/.config/gallery-dl/config.json']
[gallery-dl][debug] Starting DownloadJob for 'https://lensdump.com/nielslauridsen'
[lensdump][debug] Using LensdumpAlbumExtractor for 'https://lensdump.com/nielslauridsen'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): lensdump.com:443
[urllib3.connectionpool][debug] https://lensdump.com:443 "GET /nielslauridsen HTTP/1.1" 200 None
[lensdump][debug] Using download archive 'archive.sqlite'
[urllib3.connectionpool][debug] https://lensdump.com:443 "GET /nielslauridsen/?sort=date_asc&page=1 HTTP/1.1" 200 None
[lensdump][error] An unexpected error occurred: JSONDecodeError - Expecting value: line 1 column 1 (char 0). Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[lensdump][debug] 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gallery_dl/job.py", line 151, in run
    for msg in extractor:
               ^^^^^^^^^
  File "/usr/lib/python3/dist-packages/gallery_dl/extractor/common.py", line 707, in items
    for data[self.enum], (url, imgdata) in images:
                                           ^^^^^^
  File "/usr/lib/python3/dist-packages/gallery_dl/extractor/lensdump.py", line 67, in images
    json_data = util.json_loads(text.unquote(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Thanks,
Chris.

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

No branches or pull requests

2 participants