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] Unable to download JSON metadata: HTTP Error 401 #6938

Closed
pihug12 opened this issue Sep 23, 2015 · 8 comments
Closed

[soundcloud] Unable to download JSON metadata: HTTP Error 401 #6938

pihug12 opened this issue Sep 23, 2015 · 8 comments

Comments

@pihug12
Copy link

@pihug12 pihug12 commented Sep 23, 2015

Youtube-DL is up-to-date (version 2015.09.22) and I can't download tracks from Soundcloud.

λ python youtube-dl https://soundcloud.com/kove/guestmix-for-friction-on-bbc-r1-15th-sept-2015 --verbose
[debug] System config: []
[debug] User config: [u'--no-mtime', u'--no-cache-dir']
[debug] Command-line args: [u'https://soundcloud.com/kove/guestmix-for-friction-on-bbc-r1-15th-sept-2015', u'--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2015.09.22
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {}
[soundcloud] kove/guestmix-for-friction-on-bbc-r1-15th-sept-2015: Resolving id
[soundcloud] kove/guestmix-for-friction-on-bbc-r1-15th-sept-2015: 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 "youtube-dl\youtube_dl\extractor\common.py", line 326, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "youtube-dl\youtube_dl\YoutubeDL.py", line 1865, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "D:\Python27\lib\urllib2.py", line 410, in open
    response = meth(req, response)
  File "D:\Python27\lib\urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "D:\Python27\lib\urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "D:\Python27\lib\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "D:\Python27\lib\urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

λ python youtube-dl https://soundcloud.com/tim-e-aka-current-value/current-value-abrasion-free-download --verbose
[debug] System config: []
[debug] User config: [u'--no-mtime', u'--no-cache-dir']
[debug] Command-line args: [u'https://soundcloud.com/tim-e-aka-current-value/current-value-abrasion-free-download', u'--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2015.09.22
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {}
[soundcloud] tim-e-aka-current-value/current-value-abrasion-free-download: Resolving id
[soundcloud] tim-e-aka-current-value/current-value-abrasion-free-download: 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 "youtube-dl\youtube_dl\extractor\common.py", line 326, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "youtube-dl\youtube_dl\YoutubeDL.py", line 1865, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "D:\Python27\lib\urllib2.py", line 410, in open
    response = meth(req, response)
  File "D:\Python27\lib\urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "D:\Python27\lib\urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "D:\Python27\lib\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "D:\Python27\lib\urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
@pihug12
Copy link
Author

@pihug12 pihug12 commented Sep 23, 2015

Oups! I didn't see eb11cbe and #6930.
My bad!

@h1rule
Copy link

@h1rule h1rule commented Sep 23, 2015

I did youtube-dl -U , but still that bug.

@ddevault
Copy link

@ddevault ddevault commented Sep 24, 2015

Ditto. Fix does not work.

@pricejn2
Copy link

@pricejn2 pricejn2 commented Sep 24, 2015

The fix will be in the next release (ie, whatever comes after 2015.09.22). Until then youtube-dl -U won't help.

@ddevault
Copy link

@ddevault ddevault commented Sep 24, 2015

I tested from git.

@pricejn2
Copy link

@pricejn2 pricejn2 commented Sep 24, 2015

@SirCmpwn it works for me.

@ddevault
Copy link

@ddevault ddevault commented Sep 24, 2015

My bad. After testing again, it works. Must have done something wrong the first time around.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 24, 2015

Duplicate of #6930.

@dstftw dstftw closed this Sep 24, 2015
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
5 participants
You can’t perform that action at this time.