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

ESPN SSL : CERTIFICATE_VERIFY_FAILED with Python Ver 3.x...but works correctly with Python Ver 2.x #9624

Closed
RingoTheDog opened this issue May 28, 2016 · 0 comments

Comments

@RingoTheDog
Copy link

@RingoTheDog RingoTheDog commented May 28, 2016

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.05.21.2. 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.05.21.2

Before submitting an issue make sure you have:

  • [x ] At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

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 ```):

youtube-dl.py -v http://espn.go.com/video/clip?id=espn:15788519
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://espn.go.com/video/clip?id=espn:1578851
9']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2016.05.21.2
[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: {}
[ESPN] clip?id=espn:15788519: Downloading webpage
[ESPN] 15788519: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILE
D] 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 1946, 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 939, in https
_open
    req, **kwargs)
  File "C:\Program Files\Python35\lib\urllib\request.py", line 1242, in do_open
    raise URLError(err)

...

C:\>youtube-dl.py -v "http://espn.go.com/video/clip?id=espn:15788519"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://espn.go.com/video/clip?id=espn:15788
519']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2016.05.21.2
[debug] Python version 2.7.11 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-71346-gdf4fca2
[debug] Proxy map: {}
[ESPN] clip?id=espn:15788519: Downloading webpage
[ESPN] 15788519: Downloading webpage
[OoyalaExternal] 15788519: Downloading JSON metadata
[OoyalaExternal] 15788519: Downloading mp4 JSON
[OoyalaExternal] 15788519: Downloading m3u8 JSON
[OoyalaExternal] 45Z29zMzE6UZpqEjI_xNXOYs47qA5J8p: Downloading m3u8 information
[OoyalaExternal] 15788519: Downloading hds JSON
[OoyalaExternal] 45Z29zMzE6UZpqEjI_xNXOYs47qA5J8p: Downloading f4m manifest
[OoyalaExternal] 15788519: Downloading rtmp JSON
[debug] Invoking downloader on u'http://media.video-cdn.espn.com/motion/2016/052
8/dm_160528_nba_donovan_kerr_on_game_6/hls/52_16594658_HBR.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 6
[download] Destination: Donovan, Kerr share team's mentalities going into Game 6
-45Z29zMzE6UZpqEjI_xNXOYs47qA5J8p.mp4
[download] 100% of 18.53MiB in 00:45
[ffmpeg] Fixing malformated aac bitstream in "Donovan, Kerr share team's mentali
ties going into Game 6-45Z29zMzE6UZpqEjI_xNXOYs47qA5J8p.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:Donovan, Kerr share team'"'"'s m
entalities going into Game 6-45Z29zMzE6UZpqEjI_xNXOYs47qA5J8p.mp4' -c copy -f mp
4 -bsf:a aac_adtstoasc 'file:Donovan, Kerr share team'"'"'s mentalities going in
to Game 6-45Z29zMzE6UZpqEjI_xNXOYs47qA5J8p.temp.mp4'


<end of log>


Description of your issue, suggested solution and other information

URL: http://espn.go.com/video/clip?id=espn:15788519 works correctly under Python 2.7.11 however fails under Python 3.5.1

Thanks
Ringo
.

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