mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.7k stars 953 forks source link

[Deviantart] [Bug] Deviantart Fails to Download a specific image #5199

Closed thanesfauna closed 8 months ago

thanesfauna commented 8 months ago

Good Morning, for some reason gallery-dl fails with this specific link and I am not competent enough in programming to understand why. Can someone help me understand? Link (NSFW) https://www.deviantart.com/softenup/art/Kaguya-Sama-7-966792673


[gallery-dl][debug] Version 1.26.7
[deviantart][error] An unexpected error occurred: TypeError - argument of type 'NoneType' is not iterable. 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 "*\Python\Python312\Lib\site-packages\gallery_dl\job.py", line 128, in run
    self.dispatch(msg)
  File "*\Python\Python312\Lib\site-packages\gallery_dl\job.py", line 171, in dispatch
    self.handle_url(url, kwdict)
  File "*\Python\Python312\Lib\site-packages\gallery_dl\job.py", line 305, in handle_url
    if not self.download(url):
           ^^^^^^^^^^^^^^^^^^
  File "*\Python\Python312\Lib\site-packages\gallery_dl\job.py", line 466, in download
    return downloader.download(url, self.pathfmt)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "*\Python\Python312\Lib\site-packages\gallery_dl\downloader\http.py", line 90, in download
    return self._download_impl(url, pathfmt)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "*\Python\Python312\Lib\site-packages\gallery_dl\downloader\http.py", line 169, in _download_impl
    if code in self.retry_codes or 500 <= code < 600:
       ^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
mikf commented 8 months ago

You've set retry-codes to an unsupported value (null), but even if that error wasn't happening, you'd sill not be able to download this blurred image since it is apparently too large for DA:

$ curl "https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/c273d18b-3742-41b0-b676-732b3023e49f/dfzlq01-7f5a418e-b3fc-486b-8920-c3b4a2a9df23.png/v1/fill/w_8192,h_8192,q_100,strp,blur_30/kaguya_sama__7_by_softenup_dfzlq01-fullview.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9ODE5MiIsInBhdGgiOiJcL2ZcL2MyNzNkMThiLTM3NDItNDFiMC1iNjc2LTczMmIzMDIzZTQ5ZlwvZGZ6bHEwMS03ZjVhNDE4ZS1iM2ZjLTQ4NmItODkyMC1jM2I0YTJhOWRmMjMucG5nIiwid2lkdGgiOiI8PTgxOTIiLCJibHVyIjoiMzAifV1dLCJhdWQiOlsidXJuOnNlcnZpY2U6aW1hZ2Uub3BlcmF0aW9ucyJdfQ.3bwSWiSir71jCOOoO3nAXrgDqCOnfuQvUX1heszLngk"
output area (total pixels) must not exceed 33177600
thanesfauna commented 8 months ago

manually changing the w and h value of $ curl "https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/c273d18b-3742-41b0-b676-732b3023e49f/dfzlq01-7f5a418e-b3fc-486b-8920-c3b4a2a9df23.png/v1/fill/w_8192,h_8192,q_100,strp,blur_30/kaguya_sama__7_by_softenup_dfzlq01-fullview.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9ODE5MiIsInBhdGgiOiJcL2ZcL2MyNzNkMThiLTM3NDItNDFiMC1iNjc2LTczMmIzMDIzZTQ5ZlwvZGZ6bHEwMS03ZjVhNDE4ZS1iM2ZjLTQ4NmItODkyMC1jM2I0YTJhOWRmMjMucG5nIiwid2lkdGgiOiI8PTgxOTIiLCJibHVyIjoiMzAifV1dLCJhdWQiOlsidXJuOnNlcnZpY2U6aW1hZ2Uub3BlcmF0aW9ucyJdfQ.3bwSWiSir71jCOOoO3nAXrgDqCOnfuQvUX1heszLngk" with for example: $ curl "https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/c273d18b-3742-41b0-b676-732b3023e49f/dfzlq01-7f5a418e-b3fc-486b-8920-c3b4a2a9df23.png/v1/fill/w_4000,h_4000,q_100,strp,blur_30/kaguya_sama__7_by_softenup_dfzlq01-fullview.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9ODE5MiIsInBhdGgiOiJcL2ZcL2MyNzNkMThiLTM3NDItNDFiMC1iNjc2LTczMmIzMDIzZTQ5ZlwvZGZ6bHEwMS03ZjVhNDE4ZS1iM2ZjLTQ4NmItODkyMC1jM2I0YTJhOWRmMjMucG5nIiwid2lkdGgiOiI8PTgxOTIiLCJibHVyIjoiMzAifV1dLCJhdWQiOlsidXJuOnNlcnZpY2U6aW1hZ2Uub3BlcmF0aW9ucyJdfQ.3bwSWiSir71jCOOoO3nAXrgDqCOnfuQvUX1heszLngk" allows you to access the image, however I assume it is not possible to automate gallery-dl to doing it in similar situation?