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

[SOLVED]Unable to download any files that require hls, errors with SSL Handshake failed. (INSTALL PYTHON 2.7.9) #101

Closed
jaw20 opened this issue Nov 24, 2016 · 9 comments

Comments

@jaw20
Copy link
Contributor

jaw20 commented Nov 24, 2016

When I try to download anything that require the use of hls.py, the script seems to fail and errors out with URLError: <urlopen error [Errno 1] _ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure>

Sometime I can get the script to create the .ts file its supposed to be downloading but its called"Redirecting..."

NOTE: This seems to be Series specific, seemingly only effecting Gurren Lagaan episode 13 and higher.

Its also worth noting that HLS with the script (at least on my end is completely broken and errors with the message above.)
This has been split into 2 issues, on the basis that this one deals with HLS, while the other deals with rtmp. SEE #104

Although now creating any file using the script titles it as "Redirecting..." . This is the same if I use a different computer as well. (Not using the solution from #84)

SEE #106

@jaw20 jaw20 changed the title Unable to download any files, errors with SSL Handshake failed. Unable to download any files that require hls, errors with SSL Handshake failed. Nov 25, 2016
@jaw20 jaw20 changed the title Unable to download any files that require hls, errors with SSL Handshake failed. Unable to download any files that require hls, errors with SSL Handshake failed. (PARTIALLY SOLVED WITH #84) Nov 25, 2016
@jaw20
Copy link
Contributor Author

jaw20 commented Nov 30, 2016

This seems to be persisting after a couple of days, and the only way that this can be avoided is through using RTMP only.

@jaw20
Copy link
Contributor Author

jaw20 commented Nov 30, 2016

This has to be an issue with either m3u8 or the HLS code you guys implemented. This is probably something that should be fixed ASAP. @jsonn you were the one who originally implemented hls, could you shed any light on this?

@jaw20 jaw20 changed the title Unable to download any files that require hls, errors with SSL Handshake failed. (PARTIALLY SOLVED WITH #84) [UNSOLVED]Unable to download any files that require hls, errors with SSL Handshake failed. (FOR A WORKAROUND SEE #84) Nov 30, 2016
@jaw20 jaw20 changed the title [UNSOLVED]Unable to download any files that require hls, errors with SSL Handshake failed. (FOR A WORKAROUND SEE #84) [ONGOING]Unable to download any files that require hls, errors with SSL Handshake failed. (FOR A WORKAROUND SEE #84) Nov 30, 2016
@jsonn
Copy link
Contributor

jsonn commented Nov 30, 2016

This is from urllib itself. It has nothing to do with the HLS code. I certainly don't see any problems on Linux. As I said elsewhere, the most likeliest candidate is that Windows-Python simply ships an outdated SSL implememtation that can't deal with modern TLS.

@jsonn
Copy link
Contributor

jsonn commented Nov 30, 2016

OK, so there was a new issue in that crunchy decided to use unencrypted segments in some cases. #98 has a fix for that as well. It won't help with the SSL handshake issue though.

@jsonn
Copy link
Contributor

jsonn commented Nov 30, 2016

You can reproduce the SSL problem with the following Python code:

import urllib2
urllib2.urlopen("https://v.vrv.co")

My Windows VM certainly fails providing a working SSL handshake, Linux is perfectly fine (error 403 is expected).

@jsonn
Copy link
Contributor

jsonn commented Nov 30, 2016

You might need to install a fresh Python 2.7 to get a newer OpenSSL.

@jaw20
Copy link
Contributor Author

jaw20 commented Nov 30, 2016

I have tried re-installing 2.7.5 multiple times and I think that 2.7.9 did work(in that I wasn't getting an ssl error) when I installed it. Maybe it just isn't possible to run the script on python 2.7.5 anymore.

@jaw20
Copy link
Contributor Author

jaw20 commented Nov 30, 2016

See #106

@jaw20 jaw20 closed this as completed Nov 30, 2016
@jaw20 jaw20 changed the title [ONGOING]Unable to download any files that require hls, errors with SSL Handshake failed. (FOR A WORKAROUND SEE #84) [SOLVED]Unable to download any files that require hls, errors with SSL Handshake failed. (INSTALL PYTHON 2.7.9) Nov 30, 2016
@limitless-dev
Copy link

Didn't fix for me!
Now I get as #105
TypeError: Non-hexadecimal digit found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants