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

HTTP 403 on SoundCloud download #24715

Closed
tripulse opened this issue Apr 10, 2020 · 3 comments
Closed

HTTP 403 on SoundCloud download #24715

tripulse opened this issue Apr 10, 2020 · 3 comments

Comments

@tripulse
Copy link

@tripulse tripulse commented Apr 10, 2020

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.03.24
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'bestaudio', '-o', 'test02.%(ext)s', 'https://soundcloud.com/majorleaguewobs/minecraft-trap-remix', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.03.08
[debug] Python version 3.8.2 (CPython) - Linux-5.3.0-2-amd64-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.2.2-1, ffprobe 4.2.2-1
[debug] Proxy map: {}
[soundcloud] majorleaguewobs/minecraft-trap-remix: Downloading info JSON
[soundcloud] 186832309: Downloading JSON metadata
WARNING: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); 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.
[soundcloud] 186832309: Downloading JSON metadata
[soundcloud] 186832309: Downloading JSON metadata
[soundcloud] 186832309: Downloading JSON metadata
[debug] Invoking downloader on 'https://api.soundcloud.com/tracks/186832309/download?client_id=OdgVKzzPYXN6cljKY5A6iOga2Cb0OUXf'
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
  File "/home/tripulse/.local/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 1926, in process_info
    success = dl(filename, info_dict)
  File "/home/tripulse/.local/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 1865, in dl
    return fd.download(name, info)
  File "/home/tripulse/.local/lib/python3.8/site-packages/youtube_dl/downloader/common.py", line 366, in download
    return self.real_download(filename, info_dict)
  File "/home/tripulse/.local/lib/python3.8/site-packages/youtube_dl/downloader/http.py", line 341, in real_download
    establish_connection()
  File "/home/tripulse/.local/lib/python3.8/site-packages/youtube_dl/downloader/http.py", line 109, in establish_connection
    ctx.data = self.ydl.urlopen(request)
  File "/home/tripulse/.local/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 2238, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

Description

I was attempting to download a single track from SoundCloud by this URL. But, it throws a urllib.error.HTTPError with status code of 403. Guessing from the log it seems that SoundCloud denies the request because the API key isn't valid or something else.

@cappert
Copy link

@cappert cappert commented Apr 12, 2020

I cannot reproduce the bug.
Your version of youtube-dl is outdated (version 2020.03.08), please upgrade.

@efraim-il
Copy link

@efraim-il efraim-il commented Apr 12, 2020

tripulse, are you sure you want to download media from Soundcloud? as far I'm aware the quality is 128kbps

@tripulse
Copy link
Author

@tripulse tripulse commented Apr 17, 2020

Updated to the latest version from PyPI, that bug is fixed.

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
4 participants
You can’t perform that action at this time.