Skip to content

[pixiv] [error] limit_sanity_level warning, is_bookmarked keyerror #8398

@b331z3bub

Description

@b331z3bub

Related to issue #4327.
When downloading from a user, the download will stop after reaching a post that produces the error, limit_sanity_level. If the work that produces the error is already downloaded, I expect the download to continue after producing the error to continue to the next posts, but this is not the case.
The post is an image, not a ugoira.
If the error can't be reproduced, you can close this issue. It might be a problem on my end.
posts are NSFW.

verbose log for the post. download is successful.

gallery-dl --write-metadata "https://www.pixiv.net/en/artworks/129252222" --verbose               
[gallery-dl][debug] Version 1.30.10 - Git HEAD: 999134536e
[gallery-dl][debug] Python 3.14.0 - macOS-13.2.1-arm64-arm-64bit-Mach-O
[gallery-dl][debug] requests 2.32.5 - urllib3 2.5.0
[gallery-dl][debug] Configuration Files ['/etc/gallery-dl.conf', '${HOME}/.config/gallery-dl/config.json']
[gallery-dl][debug] Starting DownloadJob for 'https://www.pixiv.net/en/artworks/129252222'
[pixiv][debug] Using PixivWorkExtractor for 'https://www.pixiv.net/en/artworks/129252222'
[pixiv][debug] cookies: Loading cookies from '/home/user/cookies/'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): app-api.pixiv.net:443
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/illust/detail?illust_id=129252222 HTTP/1.1" 200 433
[pixiv][debug] 129252222: https://s.pximg.net/common/images/limit_unviewable_360.png
[pixiv][warning] 129252222: 'limit_sanity_level' warning
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.pixiv.net:443
[urllib3.connectionpool][debug] https://www.pixiv.net:443 "GET /ajax/illust/129252222 HTTP/1.1" 200 7604
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/detail?user_id=103297173 HTTP/1.1" 200 600
[postprocessor.ugoira][debug] using concat demuxer
[pixiv][debug] Active postprocessor modules: [UgoiraPP, MetadataPP]
./gallery-dl/pixiv/pixiv_103297173 user_jxkf5235/103297173_129252222_p0.png

verbose log for the user. download pauses.

gallery-dl --write-metadata --range 1999-2001 "https://www.pixiv.net/en/users/103297173" --verbose
[gallery-dl][debug] Version 1.30.10 - Git HEAD: 999134536e
[gallery-dl][debug] Python 3.14.0 - macOS-13.2.1-arm64-arm-64bit-Mach-O
[gallery-dl][debug] requests 2.32.5 - urllib3 2.5.0
[gallery-dl][debug] Configuration Files ['/etc/gallery-dl.conf', '${HOME}/.config/gallery-dl/config.json']
[gallery-dl][debug] Starting DownloadJob for 'https://www.pixiv.net/en/users/103297173'
[pixiv][debug] Using PixivUserExtractor for 'https://www.pixiv.net/en/users/103297173'
[pixiv][debug] Using PixivArtworksExtractor for 'https://www.pixiv.net/users/103297173/artworks'
[pixiv][debug] cookies: Loading cookies from '/home/user/cookies/'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): app-api.pixiv.net:443
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/detail?user_id=103297173 HTTP/1.1" 200 600
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.pixiv.net:443
[urllib3.connectionpool][debug] https://www.pixiv.net:443 "GET /ajax/user/103297173/profile/all HTTP/1.1" 200 2588
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173 HTTP/1.1" 200 5799
[postprocessor.ugoira][debug] using concat demuxer
[pixiv][debug] Active postprocessor modules: [UgoiraPP, MetadataPP]
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=30 HTTP/1.1" 200 6949
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=60 HTTP/1.1" 200 6178
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=90 HTTP/1.1" 200 6588
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=120 HTTP/1.1" 200 7681
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=150 HTTP/1.1" 200 6409
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=180 HTTP/1.1" 200 5943
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=210 HTTP/1.1" 200 6567
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=240 HTTP/1.1" 200 6836
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=270 HTTP/1.1" 200 7762
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=300 HTTP/1.1" 200 7547
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=330 HTTP/1.1" 200 4914
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=360 HTTP/1.1" 200 4309
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=390 HTTP/1.1" 200 5307
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=420 HTTP/1.1" 200 4657
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=450 HTTP/1.1" 200 4863
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=480 HTTP/1.1" 200 4007
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/illusts?user_id=103297173&offset=510 HTTP/1.1" 200 4441
[pixiv][debug] Inserting work 129252222
[pixiv][debug] 129252222: https://s.pximg.net/common/images/limit_
[pixiv][warning] 129252222: 'limit_sanity_level' warning
[urllib3.connectionpool][debug] https://www.pixiv.net:443 "GET /ajax/illust/129252222 HTTP/1.1" 200 7606
[pixiv][error] An unexpected error occurred: KeyError - 'is_bookmarked'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[pixiv][debug] 
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/gallery-dl/1.30.10/libexec/lib/python3.14/site-packages/gallery_dl/job.py", line 152, in run
    for msg in extractor:
               ^^^^^^^^^
  File "/opt/homebrew/Cellar/gallery-dl/1.30.10/libexec/lib/python3.14/site-packages/gallery_dl/extractor/pixiv.py", line 86, in items
    if self.meta_bookmark and work["is_bookmarked"]:
                              ~~~~^^^^^^^^^^^^^^^^^
KeyError: 'is_bookmarked'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions