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

Soundcloud not working, SSL error thrown #12462

Closed
abdelrahman-elkady opened this issue Mar 16, 2017 · 5 comments
Closed

Soundcloud not working, SSL error thrown #12462

abdelrahman-elkady opened this issue Mar 16, 2017 · 5 comments

Comments

@abdelrahman-elkady
Copy link

@abdelrahman-elkady abdelrahman-elkady commented Mar 16, 2017

  • I've verified and I assure that I'm running youtube-dl 2017.03.15
  • 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?

  • 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

Following #12280 and #12257, the issue still exists on build-2017.03.15, here is the output of the execution with the verbose flag:

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://soundcloud.com/user/track']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.03.15
[debug] Python version 2.7.6 - Linux-4.4.0-66-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 11.3-6, avprobe 11.3-6, ffmpeg git-2017-01-22-f1214ad, ffprobe git-2017-01-22-f1214ad
[debug] Proxy map: {}
[soundcloud] user/track: Resolving id
[soundcloud] user/track: Downloading info JSON
ERROR: Unable to download JSON metadata: <urlopen error [Errno 1] _ssl.c:510: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure> (caused by URLError(SSLError(1, '_ssl.c:510: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure'),))
  File "HOME_DIR/.local/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 496, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "HOME_DIR/.local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 2093, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 442, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "HOME_DIR/.local/lib/python2.7/site-packages/youtube_dl/utils.py", line 1083, in https_open
    req, **kwargs)
  File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
    raise URLError(err)

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Mar 16, 2017

[debug] Python version 2.7.6 - Linux-4.4.0-66-generic-x86_64-with-Ubuntu-14.04-trusty

Soundcloud servers require an SSL/TLS feature called Server Name Indication (SNI), which is available since Python 2.7.9. Please upgrade your Python or use Python 3 instead.

@douineauromain
Copy link

@douineauromain douineauromain commented Apr 24, 2017

root@vps:/home/my_project/node_modules/youtube-dl/bin# ./youtube-dl --version
2017.04.17
root@vps:/home/my_project/node_modules/youtube-dl/bin# python --version
Python 3.4.3
root@vps:/home/my_project/node_modules/youtube-dl/bin# ./youtube-dl https://soundcloud.com/liluzivert/15-xo-tour-llif3
[soundcloud] liluzivert/15-xo-tour-llif3: Resolving id
[soundcloud] liluzivert/15-xo-tour-llif3: Downloading info JSON
ERROR: Unable to download JSON metadata: <urlopen error [Errno 1] _ssl.c:510: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure> (caused by URLError(SSLError(1, '_ssl.c:510: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure'),))

Hello I've last youtube-dl and last python version but I still have this error... What can I do ?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 25, 2017

@douineauromain Try python ./youtube-dl -v https://soundcloud.com/liluzivert/15-xo-tour-llif3

@douineauromain
Copy link

@douineauromain douineauromain commented Apr 25, 2017

@yan12125 Thanks with your method it work ! But what does that mean ? I execute youtube-dl from a node module so I don't know how I can use your method

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 25, 2017

Sorry, but you'll have to ask the author of that node module.

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