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 API page ; please guy, can someone help me ? thanks 1000k in advance #7898

Closed
windofocean78 opened this issue Dec 18, 2015 · 1 comment

Comments

@windofocean78
Copy link

@windofocean78 windofocean78 commented Dec 18, 2015

youtube-dl -F youtube-dl --verbose -F --proxy https://www.youtube.com/watch?v=7nF2BAfWUEg
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-F', 'youtube-dl', '--verbose', '-F', '--proxy', 'https://www.youtube.com/watch?v=7nF2BAfWUEg']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.02.17
[debug] Python version 2.7.6 - Linux-3.13.0-24-generic-i686-athlon-with-LinuxMint-17-qiana
[debug] Proxy map: {u'http': 'https://www.youtube.com/watch?v=7nF2BAfWUEg', u'https': 'https://www.youtube.com/watch?v=7nF2BAfWUEg'}
[youtube:search] query "youtube-dl": Downloading page 1
ERROR: Unable to download API page: ''; 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 191, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1157, in urlopen
return self._opener.open(req)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/dist-packages/youtube_dl/utils.py", line 572, in https_open
return self.do_open(HTTPSConnectionV3, req)
File "/usr/lib/python2.7/urllib2.py", line 1181, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 979, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1013, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 975, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 835, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 797, in send
self.connect()
File "/usr/lib/python2.7/dist-packages/youtube_dl/utils.py", line 564, in connect
self._tunnel()
File "/usr/lib/python2.7/httplib.py", line 758, in _tunnel
(version, code, message) = response._read_status()
File "/usr/lib/python2.7/httplib.py", line 379, in _read_status
raise BadStatusLine(line)

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 18, 2015

There are two problems. First your command is incorrect. I should be:

youtube-dl --verbose -F --proxy some.proxy.com https://www.youtube.com/watch?v=7nF2BAfWUEg

Second you are using an out-dated version (2014.02.17). Following update instructions to update your copy.

@yan12125 yan12125 closed this Dec 18, 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.