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

HTTP Error 503; however urllib installed. #3883

Closed
Bretos opened this issue Oct 5, 2014 · 1 comment
Closed

HTTP Error 503; however urllib installed. #3883

Bretos opened this issue Oct 5, 2014 · 1 comment

Comments

@Bretos
Copy link

@Bretos Bretos commented Oct 5, 2014

Hey guys! I am trying to download a playlist from youtube, but unforunately I got some errors:

/usr/local/bin/youtube-dl -citk --max-quality FORMAT http://www.youtube.com/playlist?list=PLRc6a9k_z6Mns4XI3m5k9qzjo8Bv1Qt9H --verbose                                                    :(
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-citk', '--max-quality', 'FORMAT', 'http://www.youtube.com/playlist?list=PLRc6a9k_z6Mns4XI3m5k9qzjo8Bv1Qt9H', '--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.10.05
[debug] Python version 2.7.8 - Linux-3.16-2-amd64-x86_64-with-Debian-7
[debug] Proxy map: {}
[youtube:playlist] PLRc6a9k_z6Mns4XI3m5k9qzjo8Bv1Qt9H: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 503: Service Unavailable (caused by HTTPError()); 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/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 226, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1266, 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 448, in error
    return 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 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Using exactly the same parameters, on a different machine, youtube-dl works wonderfully.

Pycurl, urllib installed.

@Bretos Bretos changed the title Installed using both pip and curl, got errors anyway HTTP Error 503; however urllib installed. Oct 5, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Oct 5, 2014

Can you reproduce this error once again? HTTP 503 indicates a server fault, which is usually temporary.

By the way, your options -citk --max-quality FORMAT don't make any sense, and are harmless at best. Why are you passing these? You should just be able to run youtube-dl without crazy arguments, maybe with the -i option if you are fine with failed downloads going unnoticed.

I'm closing this issue now since it is almost certainly a misbehaving server of YouTube, and the problem should clear itself up. You can try to reset your DNS cache - if any - to make sure the problematic machine gets the newest addresses.

If the problem persists, please say so and we'll reopen this issue. Are all the machines in the same subnets? Can you visit http://www.youtube.com/playlist?list=PLRc6a9k_z6Mns4XI3m5k9qzjo8Bv1Qt9H in a webbrowser from the problematic machine?

@phihag phihag closed this Oct 5, 2014
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.