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

NHL fails when behind firewall "urlopen error [Errno 1] _ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure" #9300

Closed
RingoTheDog opened this issue Apr 24, 2016 · 1 comment

Comments

@RingoTheDog
Copy link

@RingoTheDog RingoTheDog commented Apr 24, 2016

If I attempt to download from the URL:
https://www.nhl.com/lightning/video/jon-cooper-pc-041216/t-277437434/c-43457803
when NOT behind a firewall it works correctly.

However if I attempt the same URL from behind a firewall it is blocked (yes I can I view the video in a browser from behind firewall)

youtube-dl.py -U "https://www.nhl.com/lightning/video/jon-cooper-pc-041216/t-277437434/c-43457803"
youtube-dl is up-to-date (2016.04.24)
[nhl.com] 43457803: Downloading JSON metadata
ERROR: Unable to download JSON metadata: <urlopen error [Errno 1] _ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure> (caused by URLError(SSLError(1, '_ssl.c:
504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure'),))

same error as #5366
maybe?

Thanks
Ringo

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.04.24. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • [X ] I've verified and I assure that I'm running youtube-dl 2016.04.24

Before submitting an issue make sure you have:

  • [X ] At least skimmed through README and most notably FAQ and BUGS sections
  • [X ] Searched the bugtracker for similar issues including closed ones
    pls see: #5366

What is the purpose of your issue?

  • [X ] Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

see above
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

https://www.nhl.com/lightning/video/jon-cooper-pc-041216/t-277437434/c-43457803


Description of your issue, suggested solution and other information

see above

@RingoTheDog
Copy link
Author

@RingoTheDog RingoTheDog commented Apr 25, 2016

UPDATE: The URL sometimes works from behind firewall when running under Python 3.x (fails with 2.x)

<urlopen error [SSL: CERTIFICATE_VERIFY
_FAILED] certificate verify failed (_ssl.c:645)> (caused by URLError(SSLError(1,
'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)'),))

C:\Transmogrifier>youtube-dl.py -v https://www.nhl.com/lightning/video/jon-coope
r-pc-041216/t-277437434/c-43457803
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://www.nhl.com/lightning/video/jon-coope
r-pc-041216/t-277437434/c-43457803']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2016.04.24
[debug] Python version 3.5.1 - Windows-2008ServerR2-6.1.7601-SP1
[debug] exe versions: ffmpeg N-71727-g46778ab, rtmpdump 2.4
[debug] Proxy map: {}
[nhl.com] 43457803: Downloading JSON metadata
ERROR: Unable to download JSON metadata: <urlopen error [SSL: CERTIFICATE_VERIFY
_FAILED] certificate verify failed (_ssl.c:645)> (caused by URLError(SSLError(1,
'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)'),))
File "C:\Transmogrifier\youtube-dl.py\youtube_dl\extractor\common.py", line 38
8, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "C:\Transmogrifier\youtube-dl.py\youtube_dl\YoutubeDL.py", line 1942, in
urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "C:\Program Files\Python35\lib\urllib\request.py", line 465, in open
response = self._open(req, data)
File "C:\Program Files\Python35\lib\urllib\request.py", line 483, in _open
'_open', req)
File "C:\Program Files\Python35\lib\urllib\request.py", line 443, in _call_cha
in
result = func(_args)
File "C:\Transmogrifier\youtube-dl.py\youtube_dl\utils.py", line 859, in https
_open
req, *_kwargs)
File "C:\Program Files\Python35\lib\urllib\request.py", line 1242, in do_open
raise URLError(err)

@RingoTheDog RingoTheDog mentioned this issue Feb 8, 2017
3 of 8 tasks complete
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
1 participant
You can’t perform that action at this time.