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

How to skip NotFoundError in Pixiv #6297

Open
Seele0oO opened this issue Oct 9, 2024 · 1 comment
Open

How to skip NotFoundError in Pixiv #6297

Seele0oO opened this issue Oct 9, 2024 · 1 comment

Comments

@Seele0oO
Copy link

Seele0oO commented Oct 9, 2024

gallery-dl -c workspaces/gallery-dl-favorite-Pic.conf https://www.pixiv.net/users/1/bookmarks/artworks
pixiv: NotFoundError: Requested resource (gallery/image) could not be found

Some Pixiv Creator Delete their account or works.

How to skip these work?

@espressoelf
Copy link

I'm also running into this error, which stops the whole script instead of going on with the next image. This is related to the sanity_level problem (#4327). The breaking artwork is https://www.pixiv.net/artworks/118027546 in my case. It opens in the browser just fine. Checking the browsing history in the app, however, reveals the grey image we all know.

Also note that the submission is an Ugoira, so maybe that case isn't handled properly, yet. Debug output below, hope it helps.

[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/ugoira/metadata?illust_id=118027546 HTTP/11" 404 None
[pixiv][debug] {'error': {'user_message': 'Page not found', 'message': '', 'reason': '', 'user_message_details': {}}}
[pixiv][error] NotFoundError: Requested resource (gallery/image) could not be found
[pixiv][debug]
Traceback (most recent call last):
  File "/opt/pypy/lib/pypy3.10/site-packages/gallery_dl/job.py", line 151, in run
    for msg in extractor:
  File "/opt/pypy/lib/pypy3.10/site-packages/gallery_dl/extractor/pixiv.py", line 65, in items
    files = self._extract_files(work)
  File "/opt/pypy/lib/pypy3.10/site-packages/gallery_dl/extractor/pixiv.py", line 110, in _extract_files
    return self._extract_ugoira(work)
  File "/opt/pypy/lib/pypy3.10/site-packages/gallery_dl/extractor/pixiv.py", line 146, in _extract_ugoira
    ugoira = self.api.ugoira_metadata(work["id"])
  File "/opt/pypy/lib/pypy3.10/site-packages/gallery_dl/extractor/pixiv.py", line 1151, in ugoira_metadata
    return self._call("/v1/ugoira/metadata", params)["ugoira_metadata"]
  File "/opt/pypy/lib/pypy3.10/site-packages/gallery_dl/extractor/pixiv.py", line 1171, in _call
    raise exception.NotFoundError()
gallery_dl.exception.NotFoundError: Requested resource (gallery/image) could not be found

mikf added a commit that referenced this issue Oct 14, 2024
update to 6ae3a5c
catch all exceptions instead of just StopException
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

3 participants