Unable to download JSON metadata: HTTP Error 400 #4001

Closed
opened 2026-02-21 01:45:59 -05:00 by deekerman · 5 comments
Owner

Originally created by @genericptr on GitHub (Feb 11, 2015).

Trying to download some playlists and getting this error on some URL's but not others. Is this a local problem from my internet perhaps someone could test? Thanks.

MacBooks-MacBook-2:iron chef 2 ryanjoseph$ youtube-dl --verbose -o '%(stitle)s.%(ext)s' https://www.youtube.com/playlist?list=PLaQc4YXhlTa9mhSJ3aBeoFo92O6Klrgdz
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '-o', '%(stitle)s.%(ext)s', 'https://www.youtube.com/playlist?list=PLaQc4YXhlTa9mhSJ3aBeoFo92O6Klrgdz']
WARNING: %(stitle)s is deprecated. Use the %(title)s and the --restrict-filenames flag(which also secures %(uploader)s et al) instead.
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.02.10.5
[debug] Python version 2.7.6 - Darwin-14.1.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube:playlist] PLaQc4YXhlTa9mhSJ3aBeoFo92O6Klrgdz: Downloading webpage
[youtube:playlist] PLaQc4YXhlTa9mhSJ3aBeoFo92O6Klrgdz: Downloading page #1
ERROR: Unable to download JSON metadata: HTTP Error 400: Bad Request (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 308, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1611, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Originally created by @genericptr on GitHub (Feb 11, 2015). Trying to download some playlists and getting this error on some URL's but not others. Is this a local problem from my internet perhaps someone could test? Thanks. # MacBooks-MacBook-2:iron chef 2 ryanjoseph$ youtube-dl --verbose -o '%(stitle)s.%(ext)s' https://www.youtube.com/playlist?list=PLaQc4YXhlTa9mhSJ3aBeoFo92O6Klrgdz [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['--verbose', '-o', '%(stitle)s.%(ext)s', 'https://www.youtube.com/playlist?list=PLaQc4YXhlTa9mhSJ3aBeoFo92O6Klrgdz'] WARNING: %(stitle)s is deprecated. Use the %(title)s and the --restrict-filenames flag(which also secures %(uploader)s et al) instead. [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2015.02.10.5 [debug] Python version 2.7.6 - Darwin-14.1.0-x86_64-i386-64bit [debug] exe versions: none [debug] Proxy map: {} [youtube:playlist] PLaQc4YXhlTa9mhSJ3aBeoFo92O6Klrgdz: Downloading webpage [youtube:playlist] PLaQc4YXhlTa9mhSJ3aBeoFo92O6Klrgdz: Downloading page #1 ERROR: Unable to download JSON metadata: HTTP Error 400: Bad Request (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 308, in _request_webpage return self._downloader.urlopen(url_or_request) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1611, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error result = self._call_chain(_args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(_args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 629, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(_args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(_args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
Author
Owner

@bilenyok commented on GitHub (Feb 11, 2015):

youtube-dl -U --verbose --ignore-errors --playlist-start=1 --max-quality=FMT -o "%(title)s.%(ext)s" https://www.youtube.com/playlist?list=PLaQc4YXhlTa9mhSJ3aBeoFo92O6Klrgdz

Same error.

@bilenyok commented on GitHub (Feb 11, 2015): youtube-dl -U --verbose --ignore-errors --playlist-start=1 --max-quality=FMT -o "%(title)s.%(ext)s" https://www.youtube.com/playlist?list=PLaQc4YXhlTa9mhSJ3aBeoFo92O6Klrgdz Same error.
Author
Owner

@genericptr commented on GitHub (Feb 11, 2015):

Thanks for the quick reply. I guess I'll try this later until presumubly it will starting working.

@genericptr commented on GitHub (Feb 11, 2015): Thanks for the quick reply. I guess I'll try this later until presumubly it will starting working.
Author
Owner

@phihag commented on GitHub (Feb 11, 2015):

When I click "load more" in my webbrowser on https://www.youtube.com/playlist?list=PLaQc4YXhlTa9mhSJ3aBeoFo92O6Klrgdz , I do not see any more videos. youtube-dl is just relaying the error. You can pass in a small --playlist-end value to just get the first videos.

Since this is an error on YouTube's side that affects the webbrowser as well, I don't think there is anything we can do about it but wait for YouTube to notice and fix the problem. Sorry!

Since I do think that youtube-dl is doing the right think here by relaying the error, I am closing this issue. Feel free to suggest an alternative behavior and we will reopen it.

@phihag commented on GitHub (Feb 11, 2015): When I click "load more" in my webbrowser on https://www.youtube.com/playlist?list=PLaQc4YXhlTa9mhSJ3aBeoFo92O6Klrgdz , I do not see any more videos. youtube-dl is just relaying the error. You can pass in a small `--playlist-end` value to just get the first videos. Since this is an error on YouTube's side that affects the webbrowser as well, I don't think there is anything we can do about it but wait for YouTube to notice and fix the problem. Sorry! Since I do think that youtube-dl is doing the right think here by relaying the error, I am closing this issue. Feel free to suggest an alternative behavior and we will reopen it.
Author
Owner

@bilenyok commented on GitHub (Feb 11, 2015):

Tkans Philipp, we are waiting to fix the problem by youtube.

@bilenyok commented on GitHub (Feb 11, 2015): Tkans Philipp, we are waiting to fix the problem by youtube.
Author
Owner

@genericptr commented on GitHub (Feb 11, 2015):

Interesting, I'm seeing 155 videos on my browser (Safari Mac) and no indication of errors. Maybe about geographical location (I'm in Asia now)?. Strange but I'll wait and see what happens later.

@genericptr commented on GitHub (Feb 11, 2015): Interesting, I'm seeing 155 videos on my browser (Safari Mac) and no indication of errors. Maybe about geographical location (I'm in Asia now)?. Strange but I'll wait and see what happens later.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#4001
No description provided.