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("''",)) #3945

Closed
vonamann opened this issue Oct 13, 2014 · 1 comment
Closed

ERROR: Unable to download webpage: '' (caused by BadStatusLine("''",)) #3945

vonamann opened this issue Oct 13, 2014 · 1 comment

Comments

@vonamann
Copy link

@vonamann vonamann commented Oct 13, 2014

Mac OS X 10.9.5, youtube-dl installed from Mac Ports. I cannot remember exactly when it started, maybe a week or two ago. When I try to download any video from YouTube, I get this error. I tried to build with Python 2.7 and 3.4, download from "http://" and "https://" with same result.

$ youtube-dl --verbose -F http://www.youtube.com/watch?v=znK652H6yQM
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '-F', 'http://www.youtube.com/watch?v=znK652H6yQM']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.10.13
[debug] Python version 2.7.8 - Darwin-13.4.0-x86_64-i386-64bit
[debug] Proxy map: {'http': 'http://localhost:8080', u'https': 'http://localhost:8080'}
[youtube] Setting language
WARNING: unable to set language: ''
[youtube] znK652H6yQM: Downloading webpage
ERROR: Unable to download webpage: '' (caused by BadStatusLine("''",)); 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 "/opt/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 226, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/opt/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1266, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/opt/local/bin/youtube-dl/youtube_dl/utils.py", line 645, in https_open
    return self.do_open(HTTPSConnectionV3, req)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1181, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 995, in request
    self._send_request(method, url, body, headers)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1029, in _send_request
    self.endheaders(body)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 991, in endheaders
    self._send_output(message_body)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 844, in _send_output
    self.send(msg)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 806, in send
    self.connect()
  File "/opt/local/bin/youtube-dl/youtube_dl/utils.py", line 637, in connect
    self._tunnel()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 767, in _tunnel
    (version, code, message) = response._read_status()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 373, in _read_status
    raise BadStatusLine(line)
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 12, 2016

Most likely this is caused by your proxy, try without it. Feel free to open anew issue if it does not help.

@dstftw dstftw closed this Jun 12, 2016
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.