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

[DeviantArt] KeyError: 'category' #5969

Closed
WhyEssEff opened this issue Aug 8, 2024 · 1 comment
Closed

[DeviantArt] KeyError: 'category' #5969

WhyEssEff opened this issue Aug 8, 2024 · 1 comment

Comments

@WhyEssEff
Copy link

WhyEssEff commented Aug 8, 2024

Traceback (using --verbose):

[gallery-dl][debug] Version 1.27.2 - Git HEAD: 39d51a45e8
[gallery-dl][debug] Python 3.12.4 - macOS-14.5-arm64-arm-64bit
[gallery-dl][debug] requests 2.32.3 - urllib3 2.2.2
[gallery-dl][debug] Configuration Files ['${HOME}/.gallery-dl.conf']
[gallery-dl][debug] Starting DownloadJob for 'https://www.deviantart.com/itoscaresme/art/Nightcrawler-thriller-1071572918'
[deviantart][debug] Using DeviantartDeviationExtractor for 'https://www.deviantart.com/itoscaresme/art/Nightcrawler-thriller-1071572918'
[deviantart][debug] Using custom API credentials (client-id 27158)
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.deviantart.com:443
[urllib3.connectionpool][debug] https://www.deviantart.com:443 "GET /api/v1/oauth2/user/profile/itoscaresme HTTP/11" 200 390
[deviantart][debug] Sleeping 0.46 seconds (request)
[urllib3.connectionpool][debug] https://www.deviantart.com:443 "GET /itoscaresme/art/1071572918 HTTP/11" 200 None
[deviantart][debug] Sleeping 0.03 seconds (request)
[urllib3.connectionpool][debug] https://www.deviantart.com:443 "GET /api/v1/oauth2/deviation/3C170CEA-4A9B-4709-5609-8F61E442C500 HTTP/11" 200 1350
[deviantart][debug] Sleeping 0.12 seconds (request)
[urllib3.connectionpool][debug] https://www.deviantart.com:443 "GET /api/v1/oauth2/deviation/metadata?deviationids%5B0%5D=3C170CEA-4A9B-4709-5609-8F61E442C500&mature_content=true HTTP/11" 200 585
[deviantart][error] An unexpected error occurred: KeyError - 'category'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[deviantart][debug]
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/gallery-dl/1.27.2/libexec/lib/python3.12/site-packages/gallery_dl/job.py", line 151, in run
    for msg in extractor:
  File "/opt/homebrew/Cellar/gallery-dl/1.27.2/libexec/lib/python3.12/site-packages/gallery_dl/extractor/deviantart.py", line 150, in items
    self.prepare(deviation)
  File "/opt/homebrew/Cellar/gallery-dl/1.27.2/libexec/lib/python3.12/site-packages/gallery_dl/extractor/deviantart.py", line 249, in prepare
    deviation["da_category"] = deviation["category"]
                               ~~~~~~~~~^^^^^^^^^^^^
KeyError: 'category'

Currently cannot download anything from DeviantArt. Tried downloading both collections and individual deviations and got the same error. Worked fine a week ago when I last tried it.

@WhyEssEff
Copy link
Author

Never mind, just saw the closed issue.

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