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.
Soundcloud JSON - SSL error #12280
Soundcloud JSON - SSL error #12280
Comments
|
What's your openssl version?
|
|
python2 -c 'import ssl; print(ssl.OPENSSL_VERSION)' |
|
OK. The reason is that api.soundcloud.com requires an SSL/TLS feature called Server Name Indication (SNI), which is available since openssl 0.9.8f according to Wikipedia. [1] Please upgrade your openssl. |
|
I checked on my friends machine and is the same with Python 2.7.9 and OpenSSL 1.0.1t 3 May 2016. youtube-dl -v https://soundcloud.com/anbroski/lil-jon-ft-three-6-mafia-act-a-fool-anbroski-edit |
|
That's a different issue. Does |
|
|
Sorry I don't know how to format it , 'insert code' gives same.. |
|
Don't worry. Just use triple backticks. Seems your system certificate store is broken. A workaround is downloading the latest certificate bundle from https://curl.haxx.se/ca/cacert.pem and set environment variable |
|
OK, you wre right, solved, thx. |
What is the purpose of your issue?
$ youtube-dl -v https://soundcloud.com/anbroski/lil-jon-ft-three-6-mafia-act-a-fool-anbroski-edit
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://soundcloud.com/anbroski/lil-jon-ft-three-6-mafia-act-a-fool-anbroski-edit']
[debug] Encodings: locale ISO-8859-1, fs ISO-8859-1, out ISO-8859-1, pref ISO-8859-1
[debug] youtube-dl version 2017.02.24.1
[debug] Python version 2.7.13 - Linux-3.10.23-xxxx-std-ipv6-64-x86_64-with-redhat-5.11-Final
[debug] exe versions: ffmpeg 0.6.5, ffprobe 0.6.5
[debug] Proxy map: {}
[soundcloud] anbroski/lil-jon-ft-three-6-mafia-act-a-fool-anbroski-edit: Resolving id
[soundcloud] anbroski/lil-jon-ft-three-6-mafia-act-a-fool-anbroski-edit: Downloading info JSON
ERROR: Unable to download JSON metadata: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:661)> (caused by URLError(SSLError(1, u'[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:661)'),))
File "youtube-dl/youtube_dl/extractor/common.py", line 496, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "youtube-dl/youtube_dl/YoutubeDL.py", line 2093, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/local/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/local/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/lib/python2.7/urllib2.py", line 467, in error
result = self._call_chain(*args)
File "/usr/local/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/local/lib/python2.7/urllib2.py", line 654, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/local/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/local/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/local/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "youtube-dl/youtube_dl/utils.py", line 1082, in https_open
req, **kwargs)
File "/usr/local/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
Description of your issue, suggested solution and other information
Stopped working with Soundcloud few days ago.
I was using Python 2.6.8 , then installed 2.7.13 and 3.5.3 to check if its a problem but all versions show same error.