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.
Unable to download gameinformer.com's video due to its SSL error. #9618
Comments
|
What's the output of the following command?
|
|
http://pastie.org/pastes/10856012/text?key=x2867mkzbndczg7wi4azsa OR see below (darn formatting): $ curl -v "https://gamestop-a.akamaihd.net/694940074001/2016/05/4916032574001/694940074001_4916032574001_s-1.ts?pubId=694940074001&videoId=4915937021001" > /dev/null
|
|
Seems working. How about the result of the following Python script? Run it with Python 3.4, the same one for youtube-dl. import urllib.request
url = 'https://gamestop-a.akamaihd.net/694940074001/2016/05/4916032574001/694940074001_4916032574001_s-1.ts?pubId=694940074001&videoId=4915937021001'
urllib.request.urlopen(url) |
|
How do I do that? I am not familiar with Python very well. FYI. I tried both v3.4 and v2.7.9. :( http://pastie.org/pastes/10856243/text?key=gle1hs5p6y7scxul7ddoaa OR see below for (autoformat):
curl performs SSL certificate verification by default, using a "bundle" |
|
For the Python script, just save the codes as
The script ends up in silence if everything is OK. Otherwise, a lengthy error message is printed if something goes wrong. |
|
I tried both Python versions and saw: So, they were OK. :) |
|
Is the original video OK, too? |
|
Yan12125: If you mean the original video URL, then it still failed with both Python versions: $ youtube-dl http://www.gameinformer.com/b/features/archive/2016/05/27/replay-the-matrix-path-of-neo.aspx :( |
|
I met the same problem when I tried to update
though i fixed it with |
|
I guess you are using XX-Net? This software uses its own self-issued certificate, so |
$ youtube-dl -v http://www.gameinformer.com/b/features/archive/2016/05/27/replay-the-matrix-path-of-neo.aspx
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.gameinformer.com/b/features/archive/2016/05/27/replay-the-matrix-path-of-neo.aspx']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.05.21.2
[debug] Python version 3.4.2 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.4
[debug] exe versions: ffmpeg 2.8.6-1, ffprobe 2.8.6-1, rtmpdump 2.4
[debug] Proxy map: {}
[GameInformer] replay-the-matrix-path-of-neo: Downloading webpage
[brightcove:new] 4915937021001: Downloading webpage
[brightcove:new] 4915937021001: Downloading JSON metadata
[brightcove:new] 4915937021001: Downloading m3u8 information
[brightcove:new] 4915937021001: Downloading m3u8 information
[debug] Invoking downloader on 'https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4916032574001&secure=true&pubId=694940074001&videoId=4915937021001'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 394
[download] Destination: Replay - The Matrix - Path of Neo-4915937021001.mp4
ERROR: unable to download video data: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)>
Traceback (most recent call last):
File "/usr/lib/python3.4/urllib/request.py", line 1174, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.4/http/client.py", line 1090, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request
self.endheaders(body)
File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.4/http/client.py", line 924, in _send_output
self.send(msg)
File "/usr/lib/python3.4/http/client.py", line 859, in send
self.connect()
File "/usr/lib/python3.4/http/client.py", line 1230, in connect
server_hostname=sni_hostname)
File "/usr/lib/python3.4/ssl.py", line 364, in wrap_socket
_context=self)
File "/usr/lib/python3.4/ssl.py", line 577, in init
self.do_handshake()
File "/usr/lib/python3.4/ssl.py", line 804, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ant/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1644, in process_info
success = dl(filename, info_dict)
File "/home/ant/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1586, in dl
return fd.download(name, info)
File "/home/ant/bin/youtube-dl/youtube_dl/downloader/common.py", line 350, in download
return self.real_download(filename, info_dict)
File "/home/ant/bin/youtube-dl/youtube_dl/downloader/hls.py", line 77, in real_download
success = ctx['dl'].download(frag_filename, {'url': frag_url})
File "/home/ant/bin/youtube-dl/youtube_dl/downloader/common.py", line 350, in download
return self.real_download(filename, info_dict)
File "/home/ant/bin/youtube-dl/youtube_dl/downloader/http.py", line 58, in real_download
data = self.ydl.urlopen(request)
File "/home/ant/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1946, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python3.4/urllib/request.py", line 455, in open
response = self._open(req, data)
File "/usr/lib/python3.4/urllib/request.py", line 473, in _open
'_open', req)
File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
result = func(_args)
File "/home/ant/bin/youtube-dl/youtube_dl/utils.py", line 939, in https_open
req, *_kwargs)
File "/usr/lib/python3.4/urllib/request.py", line 1176, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)>