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

Downloading from soundcloud.com throws a HTTP Error 401: Unauthorized #23556

Closed
noelforte opened this issue Dec 29, 2019 · 1 comment
Closed

Downloading from soundcloud.com throws a HTTP Error 401: Unauthorized #23556

noelforte opened this issue Dec 29, 2019 · 1 comment
Labels

Comments

@noelforte
Copy link

@noelforte noelforte commented Dec 29, 2019

Using youtube-dl version 2019.12.25
Device: MacBook Pro (Retina, 15-inch, Mid 2014).
Operating System: macOS Mojave, 10.14.6 (18G2022)

When using a soundcloud URL as input, youtube-dl throws the following warning:

WARNING: Unable to download JSON metadata: HTTP Error 401: Unauthorized

followed by the following error:

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.

Running in verbose mode outputs the following debug info:

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--add-metadata', u'https://soundcloud.com/arkpatrol/blossom-dearie-once-upon-a-summertime-ark-patrol-remix', u'--verbose']
[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) - Darwin-18.7.0-x86_64-i386-64bit
[debug] exe versions: avconv 12.3, avprobe 12.3, phantomjs 2.0.0, rtmpdump 2.4
[debug] Proxy map: {}

Post-error the following stacktrace is returned:

File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2237, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/Cellar/python@2/2.7.17_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python@2/2.7.17_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python@2/2.7.17_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/local/Cellar/python@2/2.7.17_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python@2/2.7.17_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Happy to provide further information to assist with debugging.

@dstftw dstftw closed this Dec 29, 2019
@dstftw dstftw added the duplicate label Dec 29, 2019
@noelforte
Copy link
Author

@noelforte noelforte commented Dec 29, 2019

is there a ticket number this is a duplicate of?

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.