Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
URLError: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> #4578
Comments
|
Windows 7 64 bit, set global IE proxy with "10.0.0.13:2516", the proxy server is an Android Phone running fqrouter 2.12.2, shared its VPN connect for others with HTTP Proxy. |
|
D:\BUILD\youtube-dl-2014.12.17.2>python -m youtube_dl -v -c -f 22 --no-check-certificate https://ww During handling of the above exception, another exception occurred: Traceback (most recent call last): D:\BUILD\youtube-dl-2014.12.17.2> |
|
I can watch the Youtube videos online with the Global IE proxy (10.0.0.13:2516). I can download the videos with Chrome Browser (visiting en.savefrom.net). Now failure with Youtube-DL. |
Finally, I got one workaround solution from stackoverflow: |
|
Reopening; we should ensure that youtube-dl works with broken SSL implemenations like Global IE proxy as well, by default. |
|
having the same issue with tsocks + youtube-dl 2016.03.26 Update: I solved this issue by using proxychains, now it works without any problem |
|
Encountered isolated incident throwing <urlopen error EOF occurred in violation of protocol (_ssl.c:590)> with v2016.04.01. Triggering an automatic retry could be helpful, perhaps. |
|
i edited "youtube_dl/utils.py": def make_HTTPS_handler(opts_no_check_certificate, **kwargs):
|
|
Dear terefang, |
|
Seems SSLv3 (considered insecure) works while SSLv23 (the highest protocol version that both the client and server support) not. I don't know why some networks require it. |
|
Well, another cause may be broken SSL implementations. @terefang, @Baalkikhaal What's the version of operatin system, Python and OpenSSL of your device? Please also post the output of |
|
ok to explain the fix: first try handshake TLSv1 (which currently is TLS 1.0, 1.1, 1.2) that was with youtube-dl from mint 17.3/ubuntu 14.04.x i have since upgraded to mint 18/ubuntu 16.04 which has youtube-dl 2016.02.22 which works without the fix |
|
Hello, I have encountered the same issue: [debug] System config: [] |
|
Thanks to @terefang. It worked. just to help other users. I am on Ubuntu 14.04 and the utils.py is here: /usr/lib/python2.7/dist-packages/youtube_dl/utils.py |
|
Thanks a lot @terefang. It worked! |
|
Upgrade it using pip Step First(if pip is not installed) Second Step(Upgrade youtube-dl) I have got the same issue after applying these two steps it is working fine. |
|
This issue should be closed now, because it is fixed in the latest version youtube-dl-2017.10.1. It was broken for me in version youtube-dl-2014.2.17 which came packaged with Ubuntu 14.04. @AbrarNitk, thanks. Your steps worked. |
|
fqrouter is dead [1], socks proxy support is now built-in, and many people confirmed that the latest youtube-dl works fine, so yes, this can be closed. Thanks for the reminder! |
|
How is solution working can you give me an example. |
|
the same problem on clash for windows10 and the latest version of youtube-dl |
D:\50_Vendors\01_Google\01_Google_IO\2014\Talk Videos>youtube-dl.exe -c -f 22 --no-check-certificate
https://www.youtube.com/watch?v=wtLJPvx7-ys -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-c', '-f', '22', '--no-check-certificate', 'https://www.youtube.com/wat
ch?v=wtLJPvx7-ys', '-v']
[debug] Encodings: locale cp936, fs mbcs, out cp936, pref cp936
[debug] youtube-dl version 2014.12.17.2
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {'ftp': 'ftp://10.0.0.13:2516', 'http': 'http://10.0.0.13:2516', 'https': 'https:
//10.0.0.13:2516'}
[youtube] wtLJPvx7-ys: Downloading webpage
[youtube] wtLJPvx7-ys: Extracting video information
[youtube] wtLJPvx7-ys: Downloading DASH manifest
[debug] Invoking downloader on u'https://r5---sn-a5m7lne7.googlevideo.com/videoplayback?ratebypass=y
es&expire=1419681181&ipbits=0&mm=31&ms=au&mt=1419659558&upn=mFj-kFhUQqk&mv=m&signature=0C2E1442517D1
569BBAD039DDCEF1B7CBD2DA0E5.B28D5A2A466FB860191C1266FE6E99AB9FFA6364&requiressl=yes&mime=video%2Fmp4
&gcr=us&sver=3&dur=8889.341&itag=22&key=yt5&ip=198.71.90.52&source=youtube&initcwndbps=12513750&id=o
-AMC76ebqZMqwXocs4GY_HCKcwWnwnvGLsbH8GLkdV463&fexp=900718%2C927622%2C932404%2C939981%2C941004%2C9439
17%2C945067%2C945323%2C947209%2C947218%2C948124%2C952302%2C952605%2C952901%2C955301%2C957103%2C95710
5%2C957201&sparams=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmime%2Cmm%2Cms%2Cmv%2Cratebyp
ass%2Crequiressl%2Csource%2Cupn%2Cexpire'
ERROR: unable to download video data: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation
of protocol>
Traceback (most recent call last):
File "youtube_dl\YoutubeDL.pyo", line 1136, in process_info
File "youtube_dl\YoutubeDL.pyo", line 1112, in dl
File "youtube_dl\downloader\common.pyo", line 297, in download
File "youtube_dl\downloader\http.pyo", line 67, in real_download
File "youtube_dl\YoutubeDL.pyo", line 1370, 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 421, in https_open
File "urllib2.pyo", line 1184, in do_open
URLError: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>