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

WARNING: unable to set language: <urlopen error [Errno 60] Operation timed out> #1954

Closed
JCwinning opened this issue Dec 12, 2013 · 6 comments
Closed

Comments

@JCwinning
Copy link

@JCwinning JCwinning commented Dec 12, 2013

Please help me out here!

I am running mac ox 10.9 python 2.7

aca80165:bin apple$ youtube-dl -U
youtube-dl is up-to-date (2013.12.11.2)

error message:

aca80165:bin apple$ youtube-dl "http://www.youtube.com/watch?v=bV9L5Ht9LgY"
[youtube] Setting language
WARNING: unable to set language: <urlopen error [Errno 60] Operation timed out>
[youtube] bV9L5Ht9LgY: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 60] Operation timed out>

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Dec 12, 2013

Please port the full output of running youtube-dl "http://www.youtube.com/watch?v=bV9L5Ht9LgY" --verbose.

@JCwinning
Copy link
Author

@JCwinning JCwinning commented Dec 12, 2013

aca80165:bin apple$ youtube-dl "http://www.youtube.com/watch?v=bV9L5Ht9LgY" --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.youtube.com/watch?v=bV9L5Ht9LgY', '--verbose']
[debug] youtube-dl version 2013.12.11.2
[debug] Python version 2.7.5 - Darwin-13.0.0-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] Setting language
WARNING: unable to set language: <urlopen error [Errno 60] Operation timed out>
[youtube] bV9L5Ht9LgY: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 60] Operation timed out>
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 167, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1029, in urlopen
    return self._opener.open(req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 561, in https_open
    return self.do_open(HTTPSConnectionV3, req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1184, in do_open
    raise URLError(err)
@JCwinning
Copy link
Author

@JCwinning JCwinning commented Dec 17, 2013

any help?

@phihag
Copy link
Contributor

@phihag phihag commented Dec 17, 2013

Mmm, this looks really strange, so I unfortunately can't offer a definitive diagnosis, but here are a couple of options.

  • Can you consistently reproduce this problem?
  • Can you reproduce this problem with the newest version of youtube-dl? We changed some timeout values, but these are unlikely the cause of the problem unless you're using an extremely slow internet connection.
  • Can you reproduce the problem from multiple networks? It may be a corporate/national firewall blocking YouTube, or an ISP issue. In which networks can you see the problem (i.e. which countries/ISPs, and is it a company or private network)?
  • Does this problem occur on other websites? What output do you get for youtube-dl -v http://vimeo.com/56015672?
  • Can you see the videos or at least the general YouTube page in your web browser?
@phihag
Copy link
Contributor

@phihag phihag commented Dec 17, 2013

If you are willing to invest the time and effort, you can also drop me an email so that we can arrange remote desktop access. With a packet capture, we could make sure that we pinpoint the problem. Feel free to create one yourself, if possible including you accessing YouTube with your browser.

@JCwinning
Copy link
Author

@JCwinning JCwinning commented Dec 17, 2013

Solved. just remember to change Proxy when you are in countries where can not access to youtube.

@phihag phihag closed this Dec 17, 2013
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
3 participants
You can’t perform that action at this time.