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

Unable to confirm age #3785

Open
ghost opened this issue Sep 17, 2014 · 16 comments
Open

Unable to confirm age #3785

ghost opened this issue Sep 17, 2014 · 16 comments

Comments

@ghost
Copy link

@ghost ghost commented Sep 17, 2014

ERROR: Unable to confirm age: urlopen error [Errno 104] Connection reset by peer
ERROR: Unable to download webpage: urlopen error [Errno 104] Connection reset by peer

What is this?

@juancri
Copy link
Contributor

@juancri juancri commented Sep 17, 2014

Technically, a terrible bug report :)

Please make sure you're using the latest version. If you still have problems, please post the full output of youtube-dl using the --verbose flag. Thank you!

@phihag
Copy link
Contributor

@phihag phihag commented Sep 17, 2014

Can you see YouTube videos in your webbrowser? And as @juancri said, please include the full output of youtube-dl when called with --verbose.

@amio
Copy link

@amio amio commented Nov 14, 2014

I've got the same problem:

Downloads » youtube-dl xuInn6wN8wU -f mp4/webm --verbose                                                             ~/Downloads 1
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['xuInn6wN8wU', '-f', 'mp4/webm', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.10.30
[debug] Python version 2.7.6 - Darwin-14.0.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] Confirming age
WARNING: Unable to confirm age: <urlopen error [Errno 60] Operation timed out>
[youtube] xuInn6wN8wU: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 60] Operation timed out> (caused by URLError(error(60, 'Operation timed out'),))
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 231, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1286, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  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 721, 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)
@iggyvolz
Copy link

@iggyvolz iggyvolz commented Nov 14, 2014

@amio:

Please make sure you're using the latest version.

Youtube-dl has been updated several times in the last 15 days, and there's no sense fixing a bug on an old version. You can update with youtube-dl -U if you installed using the regular install procedure (or update through your package manager if you installed it that way).

@amio
Copy link

@amio amio commented Nov 15, 2014

Just updated, but the problem still

Downloads » youtube-dl --version                                                                                     ~/Downloads 2
2014.10.30

Downloads » sudo youtube-dl -U                                                                                         ~/Downloads
Password:
Updating to version 2014.11.15.1 ...
Updated youtube-dl. Restart youtube-dl to use the new version.

Downloads » youtube-dl -f mp4/webp --age-limit 90 HywkFVKGgbQ                                                          ~/Downloads
[youtube] Confirming age
WARNING: Unable to confirm age: <urlopen error [Errno 60] Operation timed out>
[youtube] HywkFVKGgbQ: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 60] Operation timed out> (caused by URLError(error(60, 'Operation timed out'),))
@clampak
Copy link

@clampak clampak commented Nov 17, 2014

Works for me in version 2014.11.16.

@amio
Copy link

@amio amio commented Nov 17, 2014

After update It works now 👍

And it seems the brew package needs an update, for now it still on version 2014.09.12,or add a hint after brew install youtube-dl to remind user updating with sudo youtube-dl -U should be good too.

@iggyvolz
Copy link

@iggyvolz iggyvolz commented Nov 17, 2014

@amio - youtube-dl -U is disabled with homebrew due to homebrew policies. You should be able to run brew update && brew upgrade (or brew update && brew upgrade youtube-dl if that's the only package you want to update) to upgrade youtube-dl. If you're seeing an old version even after upgrading, you should report that as a bug to homebrew.

@amio
Copy link

@amio amio commented Nov 18, 2014

Ooops, sorry I forgot the brew update :P

@bmarons
Copy link

@bmarons bmarons commented Nov 20, 2014

I am still getting the following error even after installing the latest version

youtube-dl -x https://www.youtube.com/watch?v=h4lZMuEX_dg --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-x', 'https://www.youtube.com/watch?v=h4lZMuEX_dg', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.11.16
[debug] Python version 2.7.6 - Darwin-13.3.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] Confirming age

@amio
Copy link

@amio amio commented Nov 23, 2014

Come to this problem again, It works on my MBP@Marvericks, but fail on iMac@Yosemite:

Downloads » youtube-dl -f bestaudio XcS-LdEBUkE --verbose                                                            ~/Downloads 1
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-f', 'bestaudio', 'XcS-LdEBUkE', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.11.23.1
[debug] Python version 2.7.6 - Darwin-14.0.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.4.3, ffprobe 2.4.3
[debug] Proxy map: {}
[youtube] Confirming age
WARNING: Unable to confirm age: <urlopen error [Errno 65] No route to host>
[youtube] XcS-LdEBUkE: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 60] Operation timed out> (caused by URLError(error(60, 'Operation timed out'),))
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 273, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1319, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  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 404, 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)
@kc1212
Copy link

@kc1212 kc1212 commented Nov 24, 2014

Seeing this problem on Windows 7 too. youtube-dl gets stuck on "Confirming age" for about 2 minutes before giving up.

C:\Users\user\Downloads>youtube-dl.exe -f bestaudio --verbose SnXkhkEvNIM
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-f', 'bestaudio', '--verbose', 'SnXkhkEvNIM']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2014.11.23.1
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] Confirming age
WARNING: Unable to confirm age: <urlopen error [Errno 10060] A connection attemp
t failed because the connected party did not properly respond after a period of
time, or established connection failed because connected host has failed to resp
ond>
[youtube] SnXkhkEvNIM: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 10060] A connection att
empt failed because the connected party did not properly respond after a period
of time, or established connection failed because connected host has failed to r
espond> (caused by URLError(error(10060, 'A connection attempt failed because th
e connected party did not properly respond after a period of time, or establishe
d connection failed because connected host has failed to respond'),))
  File "youtube_dl\extractor\common.pyo", line 273, in _request_webpage
  File "youtube_dl\YoutubeDL.pyo", line 1319, in urlopen
  File "urllib2.pyo", line 404, in open
  File "urllib2.pyo", line 422, in _open
  File "urllib2.pyo", line 382, in _call_chain
  File "youtube_dl\utils.pyo", line 404, in https_open
  File "urllib2.pyo", line 1184, in do_open
@UFreedom
Copy link

@UFreedom UFreedom commented Feb 3, 2015

Hello guys.thank you for your tool , and I got the error:
ERROR: Unable to download webpage: <urlopen error [Errno 54] Connection reset by peer> (caused by URLError(error(54, 'Connection reset by peer'),))

my youtube-dl version is 2015.02.03.1

verbose log:

$ youtube-dl --verbose https://www.youtube.com/watch?v=NYtB6mlu7vA
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://youtu.be/NYtB6mlu7vA']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.02.03.1
[debug] Python version 2.7.6 - Darwin-14.1.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] NYtB6mlu7vA: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 54] Connection reset by peer> (caused by URLError(error(54, 'Connection reset by peer'),))
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 301, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1577, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
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 665, in https_open
req, *_kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)

@coolzat
Copy link

@coolzat coolzat commented May 6, 2016

hey guys.
I've been facing this error for some time lately:
ERROR: Unable to download webpage: (caused by URLError(error(54, 'Connection reset by peer'),))

my youtube-dl version is 2016.05.01

youtube-dl --verbose https://www.youtube.com/watch?v=S3RNB1jjbC8
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'https://www.youtube.com/watch?v=S3RNB1jjbC8']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.05.01
[debug] Python version 2.7.6 - Darwin-15.5.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] S3RNB1jjbC8: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 54] Connection reset by peer> (caused by URLError(error(54, 'Connection reset by peer'),))
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 388, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1942, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/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 859, in https_open
req, *_kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)

@prabhjotsumman
Copy link

@prabhjotsumman prabhjotsumman commented Jun 27, 2016

working fine in the Ubuntu linux

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.02.05.1
[debug] Python version 2.7.6 - Linux-3.19.0-61-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 9.18-6, avprobe 9.18-6
[debug] Proxy map: {}


I tested all the videos and all are working just fine in my laptop Ubuntu 14.04 LTS
This problem is generally in the Darwin operating system as observed from all the comments

@mpenkov
Copy link

@mpenkov mpenkov commented Sep 3, 2018

I've confirmed that youtube-dl --verbose https://www.youtube.com/watch?v=S3RNB1jjbC8 works on Darwin with 2018.09.01.

This issue may be closed.

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
You can’t perform that action at this time.