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: '' (caused by BadStatusLine("''",)); #5566

Closed
Sandlayth opened this issue May 1, 2015 · 1 comment
Closed

Comments

@Sandlayth
Copy link

@Sandlayth Sandlayth commented May 1, 2015

[kalix@arch-desktop dl]$ youtube-dl --proxy http://www.youtubeunblocker.org https://www.youtube.com/watch?v=4cby_RCIcIU --verbose | xclip -i
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--proxy', 'http://www.mainprox.com', '--proxy', 'http://www.youtubeunblocker.org', 'https://www.youtube.com/watch?v=4cby_RCIcIU', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.04.26
[debug] Python version 3.4.3 - Linux-3.19.3-3-ARCH-i686-with-arch
[debug] exe versions: ffmpeg 2.6.2, ffprobe 2.6.2, rtmpdump 2.4
[debug] Proxy map: {'https': 'http://www.youtubeunblocker.org', 'http': 'http://www.youtubeunblocker.org'}
ERROR: Unable to download webpage: '' (caused by BadStatusLine("''",)); 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/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 315, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 1701, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python3.4/urllib/request.py", line 463, in open
response = self._open(req, data)
File "/usr/lib/python3.4/urllib/request.py", line 481, in _open
'_open', req)
File "/usr/lib/python3.4/urllib/request.py", line 441, in _call_chain
result = func(_args)
File "/usr/lib/python3.4/site-packages/youtube_dl/utils.py", line 719, in https_open
req, *_kwargs)
File "/usr/lib/python3.4/urllib/request.py", line 1182, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.4/http/client.py", line 1088, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.4/http/client.py", line 1126, in _send_request
self.endheaders(body)
File "/usr/lib/python3.4/http/client.py", line 1084, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.4/http/client.py", line 922, in _send_output
self.send(msg)
File "/usr/lib/python3.4/http/client.py", line 857, in send
self.connect()
File "/usr/lib/python3.4/http/client.py", line 1223, in connect
super().connect()
File "/usr/lib/python3.4/http/client.py", line 837, in connect
self._tunnel()
File "/usr/lib/python3.4/http/client.py", line 815, in _tunnel
(version, code, message) = response._read_status()
File "/usr/lib/python3.4/http/client.py", line 321, in _read_status
raise BadStatusLine(line)

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 1, 2015

www.youtubeunblocker.org is not a standard proxy server. Technically, standard proxy servers should implement the CONNECT method, while www.youtubeunblocker.org not.

@yan12125 yan12125 closed this May 1, 2015
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.