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 403: Forbidden #11372

Closed
zillionn opened this issue Dec 5, 2016 · 5 comments
Closed

[SoundCloud] Unable to download JSON metadata: HTTP Error 403: Forbidden #11372

zillionn opened this issue Dec 5, 2016 · 5 comments

Comments

@zillionn
Copy link

@zillionn zillionn commented Dec 5, 2016

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.12.01. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2016.12.01

Before submitting an issue make sure you have:

  • 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

$ youtube-dl -v 'https://soundcloud.com/a-boogie-wit-da-hoodie/timeless-2'
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://soundcloud.com/a-boogie-wit-da-hoodie/timeless-2']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.12.01
[debug] Python version 3.4.2 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.5
[debug] exe versions: avconv 11.8-6, avprobe 11.8-6, ffmpeg N-82471-g0edd569, ffprobe N-82471-g0edd569, rtmpdump 2.4
[debug] Proxy map: {}
[soundcloud] a-boogie-wit-da-hoodie/timeless-2: Resolving id
[soundcloud] a-boogie-wit-da-hoodie/timeless-2: Downloading info JSON
ERROR: Unable to download JSON metadata: HTTP Error 403: Forbidden (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 "/usr/local/lib/python3.4/dist-packages/youtube_dl/extractor/common.py", line 404, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/lib/python3.4/dist-packages/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 461, in open
    response = meth(req, response)
  File "/usr/lib/python3.4/urllib/request.py", line 571, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.4/urllib/request.py", line 493, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 676, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 461, in open
    response = meth(req, response)
  File "/usr/lib/python3.4/urllib/request.py", line 571, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.4/urllib/request.py", line 499, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 579, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
<end of log>
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 5, 2016

Can you watch it in browser in the first place?

@zillionn
Copy link
Author

@zillionn zillionn commented Dec 5, 2016

I try from different locations. The one I gave you is from USA. From my computer (Europe) I can listen it from the browser but this is what youtube-dl returns:
$ youtube-dl -v 'https://soundcloud.com/a-boogie-wit-da-hoodie/timeless-2'
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://soundcloud.com/a-boogie-wit-da-hoodie/timeless-2']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.11.22
[debug] Python version 3.5.2 - Darwin-15.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.2, ffprobe 3.2, rtmpdump 2.3
[debug] Proxy map: {}
[soundcloud] a-boogie-wit-da-hoodie/timeless-2: Resolving id
[soundcloud] a-boogie-wit-da-hoodie/timeless-2: Downloading info JSON
ERROR: Unable to download JSON metadata: HTTP Error 401: Unauthorized (caused by <HTTPError 401: 'Unauthorized'>); 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 "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 404, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 2001, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 472, in open
response = meth(req, response)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 582, in http_response
'http', request, response, code, msg, hdrs)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 510, in error
return self._call_chain(*args)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 590, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)

@zillionn
Copy link
Author

@zillionn zillionn commented Dec 5, 2016

From the server in USA other tracks I tried are working but this one.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 5, 2016

Second log is outdated version. Can you watch it in browser from the location of the first log?

@zillionn
Copy link
Author

@zillionn zillionn commented Dec 5, 2016

Actually I didn't notice that I'm not using the latest version on my computer and after updating it is working.

And it is also working on the other server now, not sure what happened before, it was probably a temporary issue. Sorry bothering you.

@zillionn zillionn closed this Dec 5, 2016
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.