youtube-dl
youtube-dl copied to clipboard
[youtube] IuRwqB9NwVQ: Unable to download webpage: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)
When i try to run youtube-dl, i get this error
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=IuRwqB9NwVQ', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.10.7 (CPython) - macOS-11.7.4-x86_64-i386-64bit
[debug] exe versions: ffmpeg 5.1.2, ffprobe 5.1.2
[debug] Proxy map: {}
[youtube] IuRwqB9NwVQ: Downloading webpage
WARNING: Unable to download webpage: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)>
[youtube] IuRwqB9NwVQ: Downloading API JSON
ERROR: Unable to download API page: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)> (caused by URLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)')))
File "/usr/local/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/extractor/common.py", line 634, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 2288, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/local/Cellar/[email protected]/3.10.7/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 519, in open
response = self._open(req, data)
File "/usr/local/Cellar/[email protected]/3.10.7/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/local/Cellar/[email protected]/3.10.7/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/local/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/utils.py", line 2735, in https_open
return self.do_open(functools.partial(
File "/usr/local/Cellar/[email protected]/3.10.7/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1351, in do_open
raise URLError(err)
The command i am running is: youtube-dl "https://www.youtube.com/watch?v=IuRwqB9NwVQ" -v, i tried updating youtube-dl, and ffmpeg with homebrew, but same problem occurs
Does this happen for the same URL in the browser?
Is your system time correct?
Have you recently updated OpenSSL?
Review https://github.com/yt-dlp/yt-dlp/issues/2043.
try updating / upgrading your version of python.
Tried updating OpenSSL, works in browser, updating python did nothing either, and i tried reinstalling ytdl, But no luck.
Post the security parameters negotiated by the browser, like this:
Protocol version: TLSv1.3
Cipher suite: TLS_AES_128_GCM_SHA256
Key Exchange Group: x25519
Signature Scheme: RSA-PSS-SHA256
You should find this in some PageInfo menu item, or with the browser's devtools. Also check that the certificate for the page is actually YouTube's.
You may be accessing YouTube via some https proxy (eg, "security" package on your gateway device, or in the ISP) that is breaking the connection. Can you try bypassing the ISP connection, eg with a phone hot-spot?
@chromeosisBS ?
Sorry, kinda forgot about this, but i was able to find the ssl certificate was google’s and i have no idea where to find the security parameters