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 throwing unauthorized error #23547

Closed
dziban303 opened this issue Dec 28, 2019 · 2 comments
Closed

Soundcloud throwing unauthorized error #23547

dziban303 opened this issue Dec 28, 2019 · 2 comments
Labels

Comments

@dziban303
Copy link

@dziban303 dziban303 commented Dec 28, 2019

Checklist

  • [x ] I'm reporting a broken site support
  • [x ] I've verified that I'm running youtube-dl version 2019.12.25
  • [x ] I've checked that all provided URLs are alive and playable in a browser
  • [x ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • [x ] I've searched the bugtracker for similar issues including closed ones

Verbose log

C:\Users\dziba\Desktop\Tools\Youtube-DL>youtube-dl --verbose https://soundcloud.com/admoyo/airport-departures
[debug] System config: []
[debug] User config: ['--no-mtime', '--ffmpeg-location', 'C:\\Users\\dziba\\Desktop\\Tools\\ffmpeg\\bin', '--audio-quality', '1', '--netrc', '-o', 'C:\\Users\\dziba\\Desktop\\Tools\\Youtube-DL\\output\\%(title)s.%(ext)s', '--ignore-errors']
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://soundcloud.com/admoyo/airport-departures']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2019.12.25
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: ffmpeg N-89931-g42323c3e3a, ffprobe N-89931-g42323c3e3a
[debug] Proxy map: {}
[soundcloud] admoyo/airport-departures: Downloading info JSON
WARNING: Unable to download JSON metadata: HTTP Error 401: Unauthorized
[soundcloud] admoyo/airport-departures: Downloading info JSON
ERROR: Unable to download JSON metadata: HTTP Error 401: Unauthorized (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp243932xz\build\youtube_dl\extractor\common.py", line 627, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp243932xz\build\youtube_dl\YoutubeDL.py", line 2237, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default

Description

Youtube-dl is throwing an error when trying to download tracks from soundcloud. The URLs are accessible in a browser. I've tried using --ignore-config to bypass .netrc credential lookup and inputting them manually. Tried using another account, too. Occurs on all soundcloud URLs I tried. Confirmed using latest release, to wit

C:\Users\dziba\Desktop\Tools\Youtube-DL>youtube-dl -U
youtube-dl is up-to-date (2019.12.25)

Also tried using linux client, which threw a different error, below:

$ youtube-dl --verbose https://soundcloud.com/admoyo/airport-departures
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://soundcloud.com/admoyo/airport-departures']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.12.25
[debug] Python version 2.7.17 (CPython) - Linux-4.4.0-18362-Microsoft-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: none
[debug] Proxy map: {}
[soundcloud] admoyo/airport-departures: Downloading info JSON
WARNING: Unable to download JSON metadata: HTTP Error 401: Unauthorized
[soundcloud] admoyo/airport-departures: Downloading info JSON
ERROR: Unable to download JSON metadata: HTTP Error 401: Unauthorized (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/home/dziban/.local/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/home/dziban/.local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 2237, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
@dziban303
Copy link
Author

@dziban303 dziban303 commented Dec 28, 2019

Can you show me where the original issue is, because I'm not seeing it. Thanks

@Symbian9
Copy link

@Symbian9 Symbian9 commented Dec 29, 2019

Duplicate #23529

@ytdl-org ytdl-org locked and limited conversation to collaborators Dec 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.