Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Some YouTube servers return HTTP 404 to clients without SNI (was: Unable to download webpage: HTTP Error 404: Not Found) #9802
Comments
|
Can you play this playlist in browsers? |
|
Yes. |
|
Here's my result:
See this line:
And a similar line in your log:
Apache 2.2.22 is quite old and I don't thing YouTube is using it. I guess the connecton between your device and YouTube servers is intercepted. youtube-dl's requests are not really sent to YouTube servers. |
|
use youtube-dl directly , dont use the link generated through google translate eg: youtube-dl https://translate.google.co.in/translate?hl=en&sl=ru&tl=en&u=https%3A%2F%2Fwww.youtube.com%2Fuser%2Fdorexspb fails but youtube-dl www.youtube.com%2Fuser%2Fdorexspb works fine i also see that the youtube-dl you are using is a developer build one , delete the youtube-dl from /usr/local/bin/youtube-dl location and use this sudo wget https://yt-dl.org/downloads/2016.06.16/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl and then try again youtube-dl sometimes fails to work if you just installed from a secondary source eg : ppa + dev |
|
I use a translator only for this forum. Do not call for youtube-dl. |
|
Well, could you paste the Python 3 log, too? |
|
root@serv:/home/youtube# youtube-dl -v --print-traffic -o "/home/media/youtube/%(title)s.%(ext)s" "http://www.youtube.com/playlist?list=FLpFyQ_IxKBvBzKyP1uijeEg" |
|
This error on the forum has already been described. The solution was to move to Python 3. |
|
Can't find any difference...Could you run the following commands:
And upload |
|
Both said:
Could you replace |
|
The problem is quite comlex:
I guess the only solution is using Python versions with SNI. If you need 2.x, Python 2.7.9 or newer has SNI. |
|
Thank you very much! |
|
well i see both the external ips are blocked in russia , got this error use a proxy to download from youtube i dont see this ip as of any domain youtube or google . |
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'--print-traffic', u'--print-json', u'-o', u'/home/media/youtube/%(title)s.%(ext)s', u'http://www.youtube.com/playlist?list=FLpFyQ_IxKBvBzKyP1uijeEg']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.06.14
[debug] Python version 2.7.6 - Linux-3.13.0-88-generic-i686-with-Ubuntu-14.04-trusty
[debug] exe versions: ffmpeg 2.5.git, ffprobe 2.5.git
[debug] Proxy map: {}
send: u'GET /playlist?list=FLpFyQ_IxKBvBzKyP1uijeEg HTTP/1.1\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,_;q=0.7\r\nHost: www.youtube.com\r\n\r\n'
reply: 'HTTP/1.1 404 Not Found\r\n'
header: Date: Thu, 16 Jun 2016 09:44:40 GMT
header: Server: Apache/2.2.22
header: Last-Modified: Mon, 01 Feb 2016 08:25:06 GMT
header: ETag: "4080d-72a-52ab11f519717;534ad8455a74d"
header: Accept-Ranges: bytes
header: Vary: Accept-Encoding
header: Content-Encoding: gzip
header: Content-Length: 1100
header: Connection: close
header: Content-Type: text/html
ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/usr/local/lib/python2.7/dist-packages/youtube_dl-2016.06.14-py2.7.egg/youtube_dl/extractor/common.py", line 390, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/lib/python2.7/dist-packages/youtube_dl-2016.06.14-py2.7.egg/youtube_dl/YoutubeDL.py", line 1950, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 416, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 529, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 454, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 383, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 537, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)