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 - deviationid #271

Closed
ReneRanzinger opened this issue May 20, 2019 · 1 comment
Closed

Deviantart - KeyError - deviationid #271

ReneRanzinger opened this issue May 20, 2019 · 1 comment
Labels

Comments

@ReneRanzinger
Copy link

ReneRanzinger commented May 20, 2019

Version: v1.8.4

Command:
gallery-dl.exe -c gallery-dl.conf --verbose https://www.deviantart.com/twokinds

gallery-dl.conf:

{
	"extractor": {
		"base-directory": "./gallery-dl/",
		"deviantart": {
			"archive": "./gallery-dl/archive-deviantart.sqlite3",
			"flat": false,
			"journals": "html",
			"mature": true,
			"original": true,
			"metadata": true,
			"postprocessors": [
				{
					"name": "metadata",
					"mode": "tags",
					"extension": "txt"
				},
				{
					"name": "metadata",
					"mode": "json",
					"extension": "json"
				}
			]
		}
        }
}

Output:

[gallery-dl][debug] Version 1.8.4
[gallery-dl][debug] Python 3.7.3 - Windows-7-6.1.7601-SP1
[gallery-dl][debug] requests 2.22.0 - urllib3 1.24.3
[gallery-dl][debug] Starting DownloadJob for 'https://www.deviantart.com/twokinds'
[gallery-dl][debug] updating default urllib3 ciphers
[deviantart][debug] Using DeviantartGalleryExtractor for 'https://www.deviantart.com/twokinds'
[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/twokinds HTTP/1.1" 200 1581
[urllib3.connectionpool][debug] https://www.deviantart.com:443 "GET /api/v1/oauth2/gallery/folders?username=twokinds&offset=0&limit=50&mature_content=true HTTP/1.1" 200 395
[deviantart][error] An unexpected error occurred: KeyError - 'deviationid'. 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 "gallery_dl\cache.py", line 31, in __call__
KeyError: 'twokinds'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "gallery_dl\job.py", line 53, in run
  File "gallery_dl\extractor\deviantart.py", line 60, in items
  File "gallery_dl\extractor\deviantart.py", line 282, in deviations
  File "gallery_dl\cache.py", line 33, in __call__
  File "gallery_dl\extractor\deviantart.py", line 694, in gallery_folders
  File "gallery_dl\extractor\deviantart.py", line 785, in _pagination_list
  File "gallery_dl\extractor\deviantart.py", line 778, in _pagination
  File "gallery_dl\extractor\deviantart.py", line 792, in _extend
  File "gallery_dl\extractor\deviantart.py", line 669, in deviation_metadata
  File "gallery_dl\extractor\deviantart.py", line 669, in <genexpr>
KeyError: 'deviationid'
@mikf mikf added the bug label May 20, 2019
@mikf mikf closed this as completed in f837ea9 May 20, 2019
@mikf
Copy link
Owner

mikf commented May 20, 2019

Setting "flat": false will only get images that have been put into folders, but that aren't necessarily all images posted by a user. It is also (partially) what is responsible for the error here. Leaving this option at its default value guarantees you will be getting all images and this error doesn't happen.

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