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

Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError()) #26383

Closed
rejebsab opened this issue Aug 19, 2020 · 0 comments
Closed

Comments

@rejebsab
Copy link

@rejebsab rejebsab commented Aug 19, 2020

Hi,

When i try to download a stack of files/playlist from cloudsound, youtube-dl seems to be downloading fine up to the third or fifth file (N=5). However, starting from the (N+1) file, it fails and throws 'Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError())'.

youtube-dl version : {"version":"2020.07.28","path":null,"exec":"youtube-dl.exe"}
Please check the error below:

ERR = Error: Command failed with exit code 1: C:\TestProject\node_modules\youtube-dl\bin\youtube-dl.exe --dump-json -f best --verbose --restrict-filenames --add-header User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36 OPR/70.0.3728.106" --cookies C:\TestProject\core/controller/mediaLoader/cookies/soundcloud.txt --encoding utf8 -- https://cf-media.sndcdn.com/tlVpoK6xL5Yp?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vdGxWcG9LNnhMNVlwIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTk3ODY3ODQ4fX19XX0_&Signature=Y6XEUnhA0ata1Z5g8FJofno-V0RBBxtfOQrPppLoieTZtZjeBADhJvAmQDMJ3U1dqeAcAzjz7Ee6L2PS8cEgq8zcVysO3-Uxk9Ntz3IvxaW9myafh5Io7JXf7RhVZoft1vXa3LSjfmgQTRY8bvgH7iN17YBPRfyP9ezCgxHZ6~1XHhbNDN3AHHwNHjU7Wd1CAYxnOXxrmip5PdVBBised~IPRM6MnIQqiyoh1qoCl3Qs6SUS9mTYUUv1PuYcdW2V1ugOO71pYAMU6RKUMN7z-~rDrZAJUA11p7n7ssTVOdnIjOldndJPiPGflMu21dpNvr615fImi7zz-WkUkIc-fg__&Key-Pair-Id=APKAI6TU7MMXM5DG6EPQ
at makeError (C:\TestProject\node_modules\youtube-dl\node_modules\execa\lib\error.js:56:11)
at handlePromise (C:\TestProject\node_modules\youtube-dl\node_modules\execa\index.js:114:26)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
command: 'C:\TestProject\node_modules\youtube-dl\bin\youtube-dl.exe --dump-json -f best --verbose --restrict-filenames --add-header User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36 OPR/70.0.3728.106" --cookies C:\TestProject\core/controller/mediaLoader/cookies/soundcloud.txt --encoding utf8 -- https://cf-media.sndcdn.com/tlVpoK6xL5Yp?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vdGxWcG9LNnhMNVlwIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTk3ODY3ODQ4fX19XX0_&Signature=Y6XEUnhA0ata1Z5g8FJofno-V0RBBxtfOQrPppLoieTZtZjeBADhJvAmQDMJ3U1dqeAcAzjz7Ee6L2PS8cEgq8zcVysO3-Uxk9Ntz3IvxaW9myafh5Io7JXf7RhVZoft1vXa3LSjfmgQTRY8bvgH7iN17YBPRfyP9ezCgxHZ6~1XHhbNDN3AHHwNHjU7Wd1CAYxnOXxrmip5PdVBBised~IPRM6MnIQqiyoh1qoCl3Qs6SUS9mTYUUv1PuYcdW2V1ugOO71pYAMU6RKUMN7z-~rDrZAJUA11p7n7ssTVOdnIjOldndJPiPGflMu21dpNvr615fImi7zz-WkUkIc-fg__&Key-Pair-Id=APKAI6TU7MMXM5DG6EPQ',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: '[debug] System config: []\n' +
'[debug] User config: []\n' +
'[debug] Custom config: []\n' +
[debug] Command-line args: ['--dump-json', '-f', 'best', '--verbose', '--restrict-filenames', '--add-header', 'User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36 OPR/70.0.3728.106"', '--cookies', 'C:\\\\TestProject\\\\core/controller/mediaLoader/cookies/soundcloud.txt', '--encoding', 'utf8', '--', 'https://cf-media.sndcdn.com/tlVpoK6xL5Yp?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vdGxWcG9LNnhMNVlwIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTk3ODY3ODQ4fX19XX0_&Signature=Y6XEUnhA0ata1Z5g8FJofno-V0RBBxtfOQrPppLoieTZtZjeBADhJvAmQDMJ3U1dqeAcAzjz7Ee6L2PS8cEgq8zcVysO3-Uxk9Ntz3IvxaW9myafh5Io7JXf7RhVZoft1vXa3LSjfmgQTRY8bvgH7iN17YBPRfyP9ezCgxHZ6~1XHhbNDN3AHHwNHjU7Wd1CAYxnOXxrmip5PdVBBised~IPRM6MnIQqiyoh1qoCl3Qs6SUS9mTYUUv1PuYcdW2V1ugOO71pYAMU6RKUMN7z-~rDrZAJUA11p7n7ssTVOdnIjOldndJPiPGflMu21dpNvr615fImi7zz-WkUkIc-fg__&Key-Pair-Id=APKAI6TU7MMXM5DG6EPQ']\n +
'[debug] Adding header from command line option User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36 OPR/70.0.3728.106"\n' +
'[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref utf8\n' +
'[debug] youtube-dl version 2020.07.28\n' +
'[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362\n' +
'[debug] exe versions: ffmpeg git-2019-11-14-73ee53f, ffprobe git-2019-11-14-73ee53f\n' +
'[debug] Proxy map: {}\n' +
'WARNING: Could not send HEAD request to https://cf-media.sndcdn.com/tlVpoK6xL5Yp?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vdGxWcG9LNnhMNVlwIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTk3ODY3ODQ4fX19XX0_&Signature=Y6XEUnhA0ata1Z5g8FJofno-V0RBBxtfOQrPppLoieTZtZjeBADhJvAmQDMJ3U1dqeAcAzjz7Ee6L2PS8cEgq8zcVysO3-Uxk9Ntz3IvxaW9myafh5Io7JXf7RhVZoft1vXa3LSjfmgQTRY8bvgH7iN17YBPRfyP9ezCgxHZ6~1XHhbNDN3AHHwNHjU7Wd1CAYxnOXxrmip5PdVBBised~IPRM6MnIQqiyoh1qoCl3Qs6SUS9mTYUUv1PuYcdW2V1ugOO71pYAMU6RKUMN7z-~rDrZAJUA11p7n7ssTVOdnIjOldndJPiPGflMu21dpNvr615fImi7zz-WkUkIc-fg__&Key-Pair-Id=APKAI6TU7MMXM5DG6EPQ: HTTP Error 403: Forbidden\n' +
'ERROR: Unable to download webpage: 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.\n' +
' File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\extractor\common.py", line 627, in _request_webpage\n' +
' File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\YoutubeDL.py", line 2238, in urlopen\n' +
' File "C:\Python\Python34\lib\urllib\request.py", line 470, in open\n' +
' File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response\n' +
' File "C:\Python\Python34\lib\urllib\request.py", line 508, in error\n' +
' File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain\n' +
' File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default\n',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}

@rejebsab rejebsab closed this Aug 19, 2020
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
1 participant
You can’t perform that action at this time.