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

An unexpected error occurred: KeyError - 'u'. #955

Closed
shinji257 opened this issue Aug 23, 2020 · 1 comment
Closed

An unexpected error occurred: KeyError - 'u'. #955

shinji257 opened this issue Aug 23, 2020 · 1 comment
Labels

Comments

@shinji257
Copy link
Contributor

Running latest code in development as of 8/22/2020.

shinji@hermes:~$ /home/shinji/.local/bin/gallery-dl --write-log ~/gallery-output.log --write-unsupported ~/gallery-unsupported.log https://www.reddit.com/r/araragi/comments/ib32hm/araragi_dancing_the_platinum_disco_dance_next_to/ --verbose
[gallery-dl][debug] Version 1.14.5-dev
[gallery-dl][debug] Python 3.8.0 - Linux-5.4.44-2-pve-x86_64-with-glibc2.29
[gallery-dl][debug] requests 2.24.0 - urllib3 1.25.9
[gallery-dl][debug] Starting DownloadJob for 'https://www.reddit.com/r/araragi/comments/ib32hm/araragi_dancing_the_platinum_disco_dance_next_to/'
[reddit][debug] Using RedditSubmissionExtractor for 'https://www.reddit.com/r/araragi/comments/ib32hm/araragi_dancing_the_platinum_disco_dance_next_to/'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): oauth.reddit.com:443
[urllib3.connectionpool][debug] https://oauth.reddit.com:443 "GET /comments/ib32hm/.json?limit=0&raw_json=1 HTTP/1.1" 200 2552
[reddit][debug] Using download archive './gallery-dl/archive-reddit.sqlite3'
[reddit][error] An unexpected error occurred: KeyError - 'u'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[reddit][debug]
Traceback (most recent call last):
  File "/home/shinji/.local/lib/python3.8/site-packages/gallery_dl/job.py", line 64, in run
    for msg in self.extractor:
  File "/home/shinji/.local/lib/python3.8/site-packages/gallery_dl/extractor/reddit.py", line 67, in items
    url = meta[item["media_id"]]["s"]["u"]
KeyError: 'u'

Example: https://www.reddit.com/r/araragi/comments/ib32hm/araragi_dancing_the_platinum_disco_dance_next_to/

Note that this happens even when just getting a list of urls as I had to see what the last image grabbed was then find out on the reddit which one was next.

@kattjevfel
Copy link
Contributor

Can confirm this happens here as well, also hi fellow proxmox user!

@mikf mikf closed this as completed in d4ff767 Aug 24, 2020
@mikf mikf added the bug label Aug 24, 2020
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

3 participants