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

Patreon.com: Creator posts does not work anymore (but works again since 25.10.23) #4715

Closed
Tobi823 opened this issue Oct 24, 2023 · 1 comment

Comments

@Tobi823
Copy link
Contributor

Tobi823 commented Oct 24, 2023

Thanks for your work :)

Sadly the download from Patreon no longer works. Here is the error log:

Do you need more information from me to solve this bug?

gallery-dl --verbose --cookies cookies-patreon-com.txt "https://www.patreon.com/posts/..."

[gallery-dl][debug] Version 1.26.1
[gallery-dl][debug] Python 3.11.5 - Linux-6.5.5-1-MANJARO-x86_64-with-glibc2.38
[gallery-dl][debug] requests 2.31.0 - urllib3 2.0.7
[gallery-dl][debug] Configuration Files ['${HOME}/.config/gallery-dl/config.json']
[gallery-dl][debug] Starting DownloadJob for 'https://www.patreon.com/posts/...'
[patreon][debug] Using PatreonPostExtractor for 'https://www.patreon.com/posts/...'
[patreon][debug] TLS 1.2 disabled.
[patreon][debug] Loading cookies from 'cookies-patreon-com.txt'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.patreon.com:443
[urllib3.connectionpool][debug] https://www.patreon.com:443 "GET /posts/... HTTP/1.1" 200 None
[patreon][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 .
[patreon][debug] 
Traceback (most recent call last):
  File "/home/hacker/.local/pipx/venvs/gallery-dl/lib/python3.11/site-packages/gallery_dl/job.py", line 124, in run
    for msg in extractor:
  File "/home/hacker/.local/pipx/venvs/gallery-dl/lib/python3.11/site-packages/gallery_dl/extractor/patreon.py", line 38, in items
    for post in self.posts():
                ^^^^^^^^^^^^
  File "/home/hacker/.local/pipx/venvs/gallery-dl/lib/python3.11/site-packages/gallery_dl/extractor/patreon.py", line 327, in posts
    post = self._extract_bootstrap(page)["post"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hacker/.local/pipx/venvs/gallery-dl/lib/python3.11/site-packages/gallery_dl/extractor/patreon.py", line 252, in _extract_bootstrap
    return util.json_loads(text.extr(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/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)

The error looks like #4547, but the workaround #4547 (comment) is no longer working.

I installed gallerly-dl with pipx but also tried a new venv + python3 -m pip install -U -I --no-deps --no-cache-dir https://github.com/mikf/gallery-dl/archive/master.tar.gz

@Tobi823 Tobi823 changed the title Patreon.com/Creator/posts does not work anymore (again) Patreon.com: Creator posts does not work anymore (again) Oct 24, 2023
@Tobi823
Copy link
Contributor Author

Tobi823 commented Oct 25, 2023

It works again - maybe Patreon had a temporary problem?

@Tobi823 Tobi823 changed the title Patreon.com: Creator posts does not work anymore (again) Patreon.com: Creator posts does not work anymore (but works again since 25.10.23) Oct 25, 2023
mikf added a commit that referenced this issue Oct 25, 2023
- add ways to directly specify a 'campaign_id'
  - 'campaign-id' config option
  - 'c' or 'campaign_id' URL query parameter
- more descriptive error messages
- show 'campaign_id' value in debug log
@mikf mikf closed this as completed Oct 25, 2023
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