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

ERROR: Unable to download webpage: HTTP Error 301: The HTTP server returned a redirect error that would lead to an infinite loop. #3594

Closed
ShadowCreator opened this issue Aug 27, 2014 · 7 comments

Comments

@ShadowCreator
Copy link

@ShadowCreator ShadowCreator commented Aug 27, 2014

Verbose:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['www.youtube.com/watch?v=g7Yw1jYMptI', '--verbose']
[debug] Encodings: locale ANSI_X3.4-1968, fs ANSI_X3.4-1968, out ANSI_X3.4-1968, pref ANSI_X3.4-1968
[debug] youtube-dl version 2014.08.05
[debug] Python version 2.7.8 - Linux-3.8.11-armv7l-with-debian-jessie-sid
[debug] Proxy map: {}
[youtube] Setting language
WARNING: unable to set language: HTTP Error 301: The HTTP server returned a redirect error that would lead to an infinite loop.
The last 30x error message was:
Moved Permanently
[youtube] g7Yw1jYMptI: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 301: The HTTP server returned a redirect error that would lead to an infinite loop.
The last 30x error message was:
Moved Permanently; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 203, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1231, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 619, in http_error_302
self.inf_msg + msg, headers, fp)

@phihag
Copy link
Contributor

@phihag phihag commented Aug 27, 2014

Can you post the output when you add the --print-traffic flag?

@ShadowCreator
Copy link
Author

@ShadowCreator ShadowCreator commented Aug 27, 2014

Sure. Also it's on a Chromebook via crouton if that's helpful in any way.

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['www.youtube.com/watch?v=g7Yw1jYMptI', '--verbose', '--print-traffic']
[debug] Encodings: locale ANSI_X3.4-1968, fs ANSI_X3.4-1968, out ANSI_X3.4-1968, pref ANSI_X3.4-1968
[debug] youtube-dl version 2014.08.05
[debug] Python version 2.7.8 - Linux-3.8.11-armv7l-with-debian-jessie-sid
[debug] Proxy map: {}
[youtube] Setting language
send: 'GET /?hl=en&persist_hl=1&gl=US&persist_gl=1&opt_out_ackd=1 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/20100101 Firefox/10.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 301 Moved Permanently\r\n'
header: Date: Wed, 27 Aug 2014 02:34:51 GMT
header: Server: gwiseguy/2.0
header: P3P: CP="This is not a P3P policy! See http://support.google.com/accounts/bin/answer.py?answer=151657&hl=en for more info."
header: Set-Cookie: YSC=ylkxYDNwxa4; path=/; domain=.youtube.com; httponly
header: Set-Cookie: VISITOR_INFO1_LIVE=FrEEcdNpso; path=/; domain=.youtube.com; expires=Mon, 27-Apr-2015 14:27:50 GMT
header: Cache-Control: no-cache
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: Content-Type: text/html; charset=utf-8
header: Content-Length: 0
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: Location: https://www.youtube.com/?hl=en&persist_hl=1&gl=US&persist_gl=1&opt_out_ackd=1
header: X-Content-Type-Options: nosniff
header: Alternate-Protocol: 80:quic
header: Connection: close
send: 'GET /?hl=en&persist_hl=1&gl=US&persist_gl=1&opt_out_ackd=1 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/20100101 Firefox/10.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nHost: www.youtube.com\r\nCookie: YSC=ylkxYDNwxa4; VISITOR_INFO1_LIVE=FrEEcdNpso\r\n\r\n'
reply: 'HTTP/1.1 301 Moved Permanently\r\n'
header: Date: Wed, 27 Aug 2014 02:34:53 GMT
header: Server: gwiseguy/2.0
header: Cache-Control: no-cache
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: X-Content-Type-Options: nosniff
header: Content-Type: text/html; charset=utf-8
header: Location: https://www.youtube.com/?hl=en&persist_hl=1&gl=US&persist_gl=1&opt_out_ackd=1
header: Content-Length: 0
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: Alternate-Protocol: 80:quic
header: Connection: close
send: 'GET /?hl=en&persist_hl=1&gl=US&persist_gl=1&opt_out_ackd=1 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/20100101 Firefox/10.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nHost: www.youtube.com\r\nCookie: YSC=ylkxYDNwxa4; VISITOR_INFO1_LIVE=FrEEcdNpso\r\n\r\n'
reply: 'HTTP/1.1 301 Moved Permanently\r\n'
header: Date: Wed, 27 Aug 2014 02:34:54 GMT
header: Server: gwiseguy/2.0
header: Content-Length: 0
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: Content-Type: text/html; charset=utf-8
header: Cache-Control: no-cache
header: X-Content-Type-Options: nosniff
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: Location: https://www.youtube.com/?hl=en&persist_hl=1&gl=US&persist_gl=1&opt_out_ackd=1
header: Alternate-Protocol: 80:quic
header: Connection: close
send: 'GET /?hl=en&persist_hl=1&gl=US&persist_gl=1&opt_out_ackd=1 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/20100101 Firefox/10.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nHost: www.youtube.com\r\nCookie: YSC=ylkxYDNwxa4; VISITOR_INFO1_LIVE=FrEEcdNpso\r\n\r\n'
reply: 'HTTP/1.1 301 Moved Permanently\r\n'
header: Date: Wed, 27 Aug 2014 02:34:55 GMT
header: Server: gwiseguy/2.0
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: Cache-Control: no-cache
header: Content-Type: text/html; charset=utf-8
header: X-Content-Type-Options: nosniff
header: Location: https://www.youtube.com/?hl=en&persist_hl=1&gl=US&persist_gl=1&opt_out_ackd=1
header: Content-Length: 0
header: Alternate-Protocol: 80:quic
header: Connection: close
send: 'GET /?hl=en&persist_hl=1&gl=US&persist_gl=1&opt_out_ackd=1 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/20100101 Firefox/10.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nHost: www.youtube.com\r\nCookie: YSC=ylkxYDNwxa4; VISITOR_INFO1_LIVE=FrEEcdNpso\r\n\r\n'
reply: 'HTTP/1.1 301 Moved Permanently\r\n'
header: Date: Wed, 27 Aug 2014 02:34:56 GMT
header: Server: gwiseguy/2.0
header: Cache-Control: no-cache
header: Content-Length: 0
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: X-Content-Type-Options: nosniff
header: Location: https://www.youtube.com/?hl=en&persist_hl=1&gl=US&persist_gl=1&opt_out_ackd=1
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: Content-Type: text/html; charset=utf-8
header: Alternate-Protocol: 80:quic
header: Connection: close
WARNING: unable to set language: HTTP Error 301: The HTTP server returned a redirect error that would lead to an infinite loop.
The last 30x error message was:
Moved Permanently
[youtube] g7Yw1jYMptI: Downloading webpage
send: u'GET /watch?v=g7Yw1jYMptI&gl=US&hl=en&has_verified=1 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/20100101 Firefox/10.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nHost: www.youtube.com\r\nCookie: YSC=ylkxYDNwxa4; VISITOR_INFO1_LIVE=FrEEcdNpso\r\n\r\n'
reply: 'HTTP/1.1 301 Moved Permanently\r\n'
header: Date: Wed, 27 Aug 2014 02:34:57 GMT
header: Server: gwiseguy/2.0
header: Content-Type: text/html; charset=utf-8
header: Cache-Control: no-cache
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: Content-Length: 0
header: X-Content-Type-Options: nosniff
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: Location: https://www.youtube.com/watch?v=g7Yw1jYMptI&gl=US&hl=en&has_verified=1
header: X-Frame-Options: SAMEORIGIN
header: Alternate-Protocol: 80:quic
header: Connection: close
send: 'GET /watch?v=g7Yw1jYMptI&gl=US&hl=en&has_verified=1 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/20100101 Firefox/10.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nHost: www.youtube.com\r\nCookie: YSC=ylkxYDNwxa4; VISITOR_INFO1_LIVE=FrEEcdNpso\r\n\r\n'
reply: 'HTTP/1.1 301 Moved Permanently\r\n'
header: Date: Wed, 27 Aug 2014 02:34:59 GMT
header: Server: gwiseguy/2.0
header: Location: https://www.youtube.com/watch?v=g7Yw1jYMptI&gl=US&hl=en&has_verified=1
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: Content-Length: 0
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: Cache-Control: no-cache
header: X-Content-Type-Options: nosniff
header: Content-Type: text/html; charset=utf-8
header: X-Frame-Options: SAMEORIGIN
header: Alternate-Protocol: 80:quic
header: Connection: close
send: 'GET /watch?v=g7Yw1jYMptI&gl=US&hl=en&has_verified=1 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/20100101 Firefox/10.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nHost: www.youtube.com\r\nCookie: YSC=ylkxYDNwxa4; VISITOR_INFO1_LIVE=FrEEcdNpso\r\n\r\n'
reply: 'HTTP/1.1 301 Moved Permanently\r\n'
header: Date: Wed, 27 Aug 2014 02:35:00 GMT
header: Server: gwiseguy/2.0
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: Location: https://www.youtube.com/watch?v=g7Yw1jYMptI&gl=US&hl=en&has_verified=1
header: Content-Length: 0
header: Cache-Control: no-cache
header: Content-Type: text/html; charset=utf-8
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: X-Content-Type-Options: nosniff
header: X-Frame-Options: SAMEORIGIN
header: Alternate-Protocol: 80:quic
header: Connection: close
send: 'GET /watch?v=g7Yw1jYMptI&gl=US&hl=en&has_verified=1 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/20100101 Firefox/10.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nHost: www.youtube.com\r\nCookie: YSC=ylkxYDNwxa4; VISITOR_INFO1_LIVE=FrEEcdNpso\r\n\r\n'
reply: 'HTTP/1.1 301 Moved Permanently\r\n'
header: Date: Wed, 27 Aug 2014 02:35:01 GMT
header: Server: gwiseguy/2.0
header: X-Content-Type-Options: nosniff
header: Content-Length: 0
header: Cache-Control: no-cache
header: Content-Type: text/html; charset=utf-8
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: Location: https://www.youtube.com/watch?v=g7Yw1jYMptI&gl=US&hl=en&has_verified=1
header: X-Frame-Options: SAMEORIGIN
header: Alternate-Protocol: 80:quic
header: Connection: close
send: 'GET /watch?v=g7Yw1jYMptI&gl=US&hl=en&has_verified=1 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/20100101 Firefox/10.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,_;q=0.7\r\nHost: www.youtube.com\r\nCookie: YSC=ylkxYDNwxa4; VISITOR_INFO1_LIVE=_FrEEcdNpso\r\n\r\n'
reply: 'HTTP/1.1 301 Moved Permanently\r\n'
header: Date: Wed, 27 Aug 2014 02:35:03 GMT
header: Server: gwiseguy/2.0
header: Location: https://www.youtube.com/watch?v=g7Yw1jYMptI&gl=US&hl=en&has_verified=1
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: Content-Type: text/html; charset=utf-8
header: Cache-Control: no-cache
header: Content-Length: 0
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: X-Content-Type-Options: nosniff
header: X-Frame-Options: SAMEORIGIN
header: Alternate-Protocol: 80:quic
header: Connection: close
ERROR: Unable to download webpage: HTTP Error 301: The HTTP server returned a redirect error that would lead to an infinite loop.
The last 30x error message was:
Moved Permanently; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 203, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1231, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 619, in http_error_302
self.inf_msg + msg, headers, fp)

@phihag
Copy link
Contributor

@phihag phihag commented Aug 27, 2014

This is unlikely to be caused by the platform. Instead, it looks very much either like a temporary failure on YouTube's end or meddling of some kind of proxy in between. Can you reproduce the error with another ISP, or a VPN, or a proxy server?

@ShadowCreator
Copy link
Author

@ShadowCreator ShadowCreator commented Aug 27, 2014

Okay, I'll have another look once I get home in a few hours, I've been attempting on School WiFi.

@ShadowCreator
Copy link
Author

@ShadowCreator ShadowCreator commented Aug 27, 2014

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['www.youtube.com/watch?v=g7Yw1jYMptI', '--verbose', '--print-traffic']
[debug] Encodings: locale ANSI_X3.4-1968, fs ANSI_X3.4-1968, out ANSI_X3.4-1968, pref ANSI_X3.4-1968
[debug] youtube-dl version 2014.08.05
[debug] Python version 2.7.8 - Linux-3.8.11-armv7l-with-debian-jessie-sid
[debug] Proxy map: {}
[youtube] Setting language
send: 'GET /?hl=en&persist_hl=1&gl=US&persist_gl=1&opt_out_ackd=1 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/20100101 Firefox/10.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 302 Found\r\n'
header: Date: Wed, 27 Aug 2014 08:18:46 GMT
header: Server: gwiseguy/2.0
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: Location: https://www.youtube.com/?hl=en&persist_hl=1&gl=US
header: X-Content-Type-Options: nosniff
header: Content-Length: 0
header: P3P: CP="This is not a P3P policy! See http://support.google.com/accounts/bin/answer.py?answer=151657&hl=en for more info."
header: X-Frame-Options: SAMEORIGIN
header: Set-Cookie: VISITOR_INFO1_LIVE=JEMmjo-EA9w; path=/; domain=.youtube.com; expires=Mon, 27-Apr-2015 20:11:46 GMT
header: Set-Cookie: YSC=RIFoUFwc2oQ; path=/; domain=.youtube.com; httponly
header: Set-Cookie: s_gl=; path=/; domain=.youtube.com; expires=Thu, 01-Jan-1970 00:00:00 GMT
header: Set-Cookie: PREF=gl=US&f1=50000000; path=/; domain=.youtube.com; expires=Mon, 27-Apr-2015 20:11:46 GMT
header: Content-Type: text/html; charset=utf-8
header: Cache-Control: no-cache
header: Connection: close
send: 'GET /?hl=en&persist_hl=1&gl=US 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/20100101 Firefox/10.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nHost: www.youtube.com\r\nCookie: YSC=RIFoUFwc2oQ; VISITOR_INFO1_LIVE=JEMmjo-EA9w; PREF=gl=US&f1=50000000\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Wed, 27 Aug 2014 08:18:47 GMT
header: Server: gwiseguy/2.0
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: Cache-Control: no-cache
header: X-Frame-Options: SAMEORIGIN
header: Content-Encoding: gzip
header: P3P: CP="This is not a P3P policy! See http://support.google.com/accounts/bin/answer.py?answer=151657&hl=en for more info."
header: Content-Type: text/html; charset=utf-8
header: X-Content-Type-Options: nosniff
header: Set-Cookie: s_gl=1d69aac621b2f9c0a25dade722d6e24bcwIAAABVUw==; path=/; domain=.youtube.com
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: Connection: close
header: Transfer-Encoding: chunked
[youtube] g7Yw1jYMptI: Downloading webpage
send: u'GET /watch?v=g7Yw1jYMptI&gl=US&hl=en&has_verified=1 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/20100101 Firefox/10.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nHost: www.youtube.com\r\nCookie: YSC=RIFoUFwc2oQ; VISITOR_INFO1_LIVE=JEMmjo-EA9w; PREF=gl=US&f1=50000000; s_gl=1d69aac621b2f9c0a25dade722d6e24bcwIAAABVUw==\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Wed, 27 Aug 2014 08:18:49 GMT
header: Server: gwiseguy/2.0
header: Content-Encoding: gzip
header: P3P: CP="This is not a P3P policy! See http://support.google.com/accounts/bin/answer.py?answer=151657&hl=en for more info."
header: Set-Cookie: s_gl=1d69aac621b2f9c0a25dade722d6e24bcwIAAABVUw==; path=/; domain=.youtube.com
header: Content-Type: text/html; charset=utf-8
header: X-Content-Type-Options: nosniff
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: X-Frame-Options: SAMEORIGIN
header: Cache-Control: no-cache
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: Connection: close
header: Transfer-Encoding: chunked
[youtube] g7Yw1jYMptI: Downloading video info webpage
send: u'GET /get_video_info?&video_id=g7Yw1jYMptI&el=embedded&ps=default&eurl=&gl=US&hl=en 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/20100101 Firefox/10.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nHost: www.youtube.com\r\nCookie: YSC=RIFoUFwc2oQ; VISITOR_INFO1_LIVE=JEMmjo-EA9w; PREF=gl=US&f1=50000000; s_gl=1d69aac621b2f9c0a25dade722d6e24bcwIAAABVUw==\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Wed, 27 Aug 2014 08:18:50 GMT
header: Server: gwiseguy/2.0
header: Expires: Tue, 27 Apr 1971 19:44:06 EST
header: X-Content-Type-Options: nosniff
header: X-Frame-Options: SAMEORIGIN
header: Set-Cookie: s_gl=1d69aac621b2f9c0a25dade722d6e24bcwIAAABVUw==; path=/; domain=.youtube.com
header: Cache-Control: no-store
header: Content-Type: application/x-www-form-urlencoded
header: X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
header: P3P: CP="This is not a P3P policy! See http://support.google.com/accounts/bin/answer.py?answer=151657&hl=en for more info."
header: Transfer-Encoding: chunked
header: Connection: close
[youtube] g7Yw1jYMptI: Extracting video information
[debug] Invoking downloader on u'https://r4---sn-ppoxu-5qal.googlevideo.com/videoplayback?signature=A6AFE89004C1B0DB4F69F91014E7A4E34B9558A8.2042A81B3639E80A7D7CF78FB7410457BC76FF97&upn=ALcBnff8gaI&ratebypass=yes&initcwndbps=689000&key=yt5&sver=3&itag=22&mt=1409127443&mm=31&id=o-AOPBmDxB92S7VVZYPxdo-gPexI2i_MHI3JCUPwMMT-iM&fexp=902408%2C924631%2C927622%2C931983%2C932404%2C932625%2C934024%2C934030%2C938676%2C946023%2C948514%2C948600&sparams=id%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cms%2Cmv%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&expire=1409149130&ipbits=0&ip=124.169.53.10&requiressl=yes&source=youtube&mv=m&ms=au'
send: u'GET /videoplayback?signature=A6AFE89004C1B0DB4F69F91014E7A4E34B9558A8.2042A81B3639E80A7D7CF78FB7410457BC76FF97&upn=ALcBnff8gaI&ratebypass=yes&initcwndbps=689000&key=yt5&sver=3&itag=22&mt=1409127443&mm=31&id=o-AOPBmDxB92S7VVZYPxdo-gPexI2i_MHI3JCUPwMMT-iM&fexp=902408%2C924631%2C927622%2C931983%2C932404%2C932625%2C934024%2C934030%2C938676%2C946023%2C948514%2C948600&sparams=id%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cms%2Cmv%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&expire=1409149130&ipbits=0&ip=124.169.53.10&requiressl=yes&source=youtube&mv=m&ms=au HTTP/1.1\r\nAccept-Encoding: identity\r\nAccept-Language: en-us,en;q=0.5\r\nHost: r4---sn-ppoxu-5qal.googlevideo.com\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/20100101 Firefox/10.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Last-Modified: Sun, 10 Aug 2014 13:58:30 GMT
header: Content-Type: video/mp4
header: Date: Wed, 27 Aug 2014 08:18:52 GMT
header: Expires: Wed, 27 Aug 2014 08:18:52 GMT
header: Cache-Control: private, max-age=21298
header: Accept-Ranges: bytes
header: Content-Length: 61971595
header: Connection: close
header: Alternate-Protocol: 443:quic
header: X-Content-Type-Options: nosniff
header: Server: gvs 1.0
[download] Destination: KATAKLYSM - Elevate (OFFICIAL MUSIC VIDEO)-g7Yw1jYMptI.mp4
[download] 100% of 59.10MiB in 03:19

@phihag
Copy link
Contributor

@phihag phihag commented Aug 27, 2014

Great to hear youtube-dl works now! What did you change to effect this fix?

@phihag phihag closed this Aug 27, 2014
@ShadowCreator
Copy link
Author

@ShadowCreator ShadowCreator commented Aug 27, 2014

Unfortunately I don't actually know. I asked the IT guys about what might be wrong and they said they'll make some changes to the proxy and now it works, so I'm guessing it was a proxy problem and not a youtube-dl problem. But thanks so much for helping out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.