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

Error 403 Forbidden on Soundcloud #9442

Closed
ghost opened this issue May 9, 2016 · 3 comments
Closed

Error 403 Forbidden on Soundcloud #9442

ghost opened this issue May 9, 2016 · 3 comments

Comments

@ghost
Copy link

@ghost ghost commented May 9, 2016

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

And I 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 the issue?

  • Bug report (encountered problems with youtube-dl)

The purpose of this issue is a bug report, output as follows:

$ youtube-dl -v <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.05.01
[debug] Python version 3.4.3 - Darwin-15.4.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
...
<end of log>

Description of your issue, suggested solution and other information

I have used youtube-dl to download from a playlist on soundcloud. The playlist contains 238 items of various sizes. After downloading 38 items, I received an error 403 forbidden.
I then switched to another wifi in a different location altogether and tried to resume the download at item 38, with the same error. At item 39, with the same error.
I am unable to download from that soundcloud playlist, even when I use the personal credentials of the person who made that list.

The command line I have tried using are (one on each line):

youtube-dl https://soundcloud.com/evurutin/likes --playlist-start 38
youtube-dl https://soundcloud.com/evurutin/likes --playlist-start 39
youtube-dl https://soundcloud.com/evurutin/likes --playlist-start 38 --extract-audio
youtube-dl https://soundcloud.com/evurutin/likes --playlist-start 38 -u (that person's username) -p (that person's password)

And in all cases I obtain the same error

[download] Downloading video 1 of 201
[soundcloud] christineandthequeens/christine-paradis-remix: Resolving id
[soundcloud] christineandthequeens/christine-paradis-remix: 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; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Nothing from the database here shows me anything useful about what I can do to solve the issue.
I hope I am writing this correctly. Please let me know if any additional information is needed.
Thank you

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 9, 2016

Post the full output of youtube-dl when run with -v, i.e. add -v flag to your command line, copy the whole output and post it in the issue body wrapped in ``` for better formatting. It should look similar to this:

$ youtube-dl -v <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2015.12.06
[debug] Git HEAD: 135392e
[debug] Python version 2.6.6 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...

Do not post screenshots of verbose log only plain text is acceptable.

The output (including the first lines) contains important debugging information. Issues without the full output are often not reproducible and therefore do not get solved in short order, if ever.

@dstftw dstftw closed this May 9, 2016
@ghost
Copy link
Author

@ghost ghost commented May 9, 2016

Hello,
I am sorry, I had misunderstood.
Here it is:

debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://soundcloud.com/evurutin/likes', '--playlist-start', '39', '--extract-audio', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.05.01
[debug] Python version 3.4.3 - Darwin-15.4.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[soundcloud:user] evurutin: Downloading user info
[soundcloud:user] evurutin: Downloading track page 1
[soundcloud:user] evurutin: Downloading track page 2
[soundcloud:user] evurutin: Downloading track page 3
[soundcloud:user] evurutin: Downloading track page 4
[soundcloud:user] evurutin: Downloading track page 5
[soundcloud:user] evurutin: Downloading track page 6
[download] Downloading playlist: EvUrutin (Likes)
[soundcloud:user] playlist EvUrutin (Likes): Collected 238 video ids (downloading 200 of them)
[download] Downloading video 1 of 200
[soundcloud] christineandthequeens/it-1: Resolving id
[soundcloud] christineandthequeens/it-1: 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; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 388, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1942, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/Users/mehdy/anaconda/lib/python3.4/urllib/request.py", line 469, in open
    response = meth(req, response)
  File "/Users/mehdy/anaconda/lib/python3.4/urllib/request.py", line 579, in http_response
    'http', request, response, code, msg, hdrs)
  File "/Users/mehdy/anaconda/lib/python3.4/urllib/request.py", line 501, in error
    result = self._call_chain(*args)
  File "/Users/mehdy/anaconda/lib/python3.4/urllib/request.py", line 441, in _call_chain
    result = func(*args)
  File "/Users/mehdy/anaconda/lib/python3.4/urllib/request.py", line 684, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/Users/mehdy/anaconda/lib/python3.4/urllib/request.py", line 469, in open
    response = meth(req, response)
  File "/Users/mehdy/anaconda/lib/python3.4/urllib/request.py", line 579, in http_response
    'http', request, response, code, msg, hdrs)
  File "/Users/mehdy/anaconda/lib/python3.4/urllib/request.py", line 507, in error
    return self._call_chain(*args)
  File "/Users/mehdy/anaconda/lib/python3.4/urllib/request.py", line 441, in _call_chain
    result = func(*args)
  File "/Users/mehdy/anaconda/lib/python3.4/urllib/request.py", line 587, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
@Hrxn
Copy link

@Hrxn Hrxn commented May 12, 2016

File "/Users/mehdy/anaconda/lib/python3.4/urllib/request.py", line 469, in open

Looks like you use Anaconda, an alternative distribution of Python.

It should work just as well, theoretically, but maybe try running it with another Python version, just for comparison.

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.