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

[Bluesky] An unexpected error occurred: KeyError - 'value' #6577

Closed
Technotron21 opened this issue Dec 1, 2024 · 1 comment
Closed

[Bluesky] An unexpected error occurred: KeyError - 'value' #6577

Technotron21 opened this issue Dec 1, 2024 · 1 comment
Labels

Comments

@Technotron21
Copy link

Been having this issue since enabling quoted posts on the configuration file. I initially assumed this had something to do with the non-bsky PDSs I saw get fixed in the recent update, but it didn't change anything. So I'm left assuming there's an issue with my set up, since I see this has popped up elsewhere in different applications.

[gallery-dl][debug] Version 1.28.0 - Executable (stable/windows)
[gallery-dl][debug] Python 3.8.10 - Windows-10-10.0.19045
[gallery-dl][debug] requests 2.32.3 - urllib3 2.2.3
[gallery-dl][debug] Configuration Files ['%APPDATA%\\gallery-dl\\config.json']
[gallery-dl][debug] Starting DownloadJob for 'https://bsky.app/profile/bsky.app/posts'
[bluesky][debug] Using BlueskyPostsExtractor for 'https://bsky.app/profile/bsky.app/posts'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): bsky.social:443
[urllib3.connectionpool][debug] https://bsky.social:443 "GET /xrpc/com.atproto.identity.resolveHandle?handle=bsky.app HTTP/11" 200 42
[urllib3.connectionpool][debug] https://bsky.social:443 "GET /xrpc/app.bsky.actor.getProfile?actor=did%3Aplc%3Az72i7hdynmk6r22z27h6tvur HTTP/11" 200 None
[urllib3.connectionpool][debug] https://bsky.social:443 "GET /xrpc/app.bsky.feed.getAuthorFeed?actor=did%3Aplc%3Az72i7hdynmk6r22z27h6tvur&filter=posts_and_author_threads&limit=100 HTTP/11" 200 None
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): plc.directory:443
[urllib3.connectionpool][debug] https://plc.directory:443 "GET /did:plc:z72i7hdynmk6r22z27h6tvur HTTP/11" 200 554
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-27T20_40_31_3lbxfx4nfkk2z_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-27T20_40_31_3lbxfx4nfkk2z_2.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-27T20_40_31_3lbxfx4nfkk2z_3.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-27T20_40_31_3lbxfx3gocc2z_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-20T00_04_24_3lbdnmbcx7s2u_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-20T00_04_24_3lbdnmbcx7s2u_2.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-20T00_02_44_3lbdnjc7ars2u_1.mp4
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-19T23_51_04_3lbdmuh7axs2u_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-18T02_51_26_3lb6vz4ms6c25_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-15T00_53_46_3lax5zxh7bc2p_1.mp4
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-15T00_08_29_3lax3iyfjxk2z_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-14T23_17_29_3lawynrmfzk2f_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-13T05_30_19_3lasmkmv6t22l_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-12T19_39_08_3larljiybf22v_1.mp4
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-08T19_44_37_3lahjxo2owc2p_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-08T19_44_37_3lahjxnkxyk2p_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-11-08T19_44_37_3lahjxmqajk2p_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-10-12T20_24_25_3l6dplwluhb2f_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-10-10T22_29_22_3l66vnjkc652d_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-10-10T22_27_12_3l66vjnsdqt2v_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-10-10T22_25_23_3l66vgfigev2l_1.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-10-10T22_25_23_3l66vgfigev2l_2.jpg
# H:\Stuff\gallery-dl\bskyextra\bluesky\bsky.app\2024-10-10T22_24_38_3l66vf2q4pi26_1.jpg
[bluesky][error] An unexpected error occurred: KeyError - 'value'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[bluesky][debug]
Traceback (most recent call last):
  File "gallery_dl\job.pyc", line 151, in run
  File "gallery_dl\extractor\bluesky.pyc", line 81, in items
KeyError: 'value'
@mikf mikf added the site:bug label Dec 1, 2024
@mikf
Copy link
Owner

mikf commented Dec 1, 2024

It is trying to process an automated "generatorView" post as quoted post.

{
  "$type": "app.bsky.feed.defs#generatorView",
  "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreidljdg62x3zhlweyzshoekrw2znokytt5tmib7g4xsngwvpnf6ule@jpeg",
  "cid": "bafyreievgu2ty7qbiaaom5zhmkznsnajuzideek3lo7e65dwqlrvrxnmo4",
  "creator": {
    "associated": {
      "chat": {
        "allowIncoming": "none"
      }
    },
    "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreihagr2cmvl2jt4mgx3sppwe2it3fwolkrbtjrhcnwjk4jdijhsoze@jpeg",
    "createdAt": "2023-04-12T04:53:57.057Z",
    "description": "official Bluesky account (check username👆)\n\nPress: press@blueskyweb.xyz\nSupport: support@bsky.app",
    "did": "did:plc:z72i7hdynmk6r22z27h6tvur",
    "displayName": "Bluesky",
    "handle": "bsky.app",
    "indexedAt": "2024-11-21T18:47:43.773Z",
    "labels": []
  },
  "description": "Trending content from your personal network",
  "did": "did:web:discover.bsky.app",
  "displayName": "Discover",
  "indexedAt": "2023-05-19T23:19:19.592Z",
  "labels": [],
  "likeCount": 32319,
  "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.generator/whats-hot"
}

@mikf mikf closed this as completed Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants