Skip to content

Unsupported URL / JSONDecodeError #8360

@coralof

Description

@coralof

Hello, I have been trying to use gallery-dl to download sets from girlsreleased, but every version I try has some error.

I tried the version included in Debian 13's repos, and get the following when trying to download a set:

gallery-dl --verbose https://girlsreleased.com/set/18464

[gallery-dl][debug] Version 1.30.9
[gallery-dl][debug] Python 3.13.5 - Linux-6.12.48+deb13-amd64-x86_64-with-glibc2.41
[gallery-dl][debug] requests 2.32.5 - urllib3 2.3.0
[gallery-dl][debug] Configuration Files []
[gallery-dl][debug] Starting DownloadJob for 'https://girlsreleased.com/set/18464'
[girlsreleased][debug] Using GirlsreleasedSetExtractor for 'https://girlsreleased.com/set/18464'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): girlsreleased.com:443
[urllib3.connectionpool][debug] https://girlsreleased.com:443 "GET /api/0.1/set/18464 HTTP/1.1" 200 None
[girlsreleased][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 .
[girlsreleased][debug] 
Traceback (most recent call last):
  File "/home/cora/.local/lib/python3.13/site-packages/gallery_dl/job.py", line 152, in run
    for msg in extractor:
               ^^^^^^^^^
  File "/home/cora/.local/lib/python3.13/site-packages/gallery_dl/extractor/girlsreleased.py", line 49, in items
    json = self.request_json(url)["set"]
           ~~~~~~~~~~~~~~~~~^^^^^
  File "/home/cora/.local/lib/python3.13/site-packages/gallery_dl/extractor/common.py", line 271, in request_json
    return util.json_loads(response.text)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/json/decoder.py", line 345, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/json/decoder.py", line 363, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I also tried running the bin file downloaded directly from GitHub:

./gallery-dl.bin --verbose girlsreleased.com/set/18464

[gallery-dl][debug] Version 1.30.9 - Executable (stable/linux)
[gallery-dl][debug] Python 3.10.12 - Linux-6.12.48+deb13-amd64-x86_64-with-glibc2.41
[gallery-dl][debug] requests 2.32.5 - urllib3 2.5.0
[gallery-dl][debug] Configuration Files []
[gallery-dl][debug] Starting DownloadJob for 'girlsreleased.com/set/18464'
[girlsreleased][debug] Using GirlsreleasedSetExtractor for 'girlsreleased.com/set/18464'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): girlsreleased.com:443
[urllib3.connectionpool][debug] https://girlsreleased.com:443 "GET /api/0.1/set/18464 HTTP/1.1" 200 None
[girlsreleased][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 .
[girlsreleased][debug] 
Traceback (most recent call last):
  File "gallery_dl/job.py", line 152, in run
  File "gallery_dl/extractor/girlsreleased.py", line 49, in items
  File "gallery_dl/extractor/common.py", line 271, in request_json
  File "json/decoder.py", line 337, in decode
  File "json/decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

And the python3 version, installed via pip seems to think there is no module there at all.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions