crunchyroll-dl: (node:28502) UnhandledPromiseRejectionWarning: Error: Request failed with status code 403
Hello here :
crunchyroll-dl -u xxxx -p xxxx -i https://www.crunchyroll.com/sing-yesterday-for-me/episode-3-what-is-love-794608 -l frFR -q 1080p -s soft --vilos -o test.mkv
(node:28502) UnhandledPromiseRejectionWarning: Error: Request failed with status code 403
at createError (/usr/lib/node_modules/crunchyroll-dl/node_modules/axios/lib/core/createError.js:16:15)
at settle (/usr/lib/node_modules/crunchyroll-dl/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/usr/lib/node_modules/crunchyroll-dl/node_modules/axios/lib/adapters/http.js:236:11)
at IncomingMessage.emit (events.js:322:22)
at endReadableNT (_stream_readable.js:1187:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
(node:28502) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:28502) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 18 (10 by maintainers)
I was debugging this for a bit today and couldn’t seem to get around it, that’s annoying
I’ll look into this as well. I got it to (sort of) work by calling py3 from the Node runtime and having it use this Python cloudscraper but that requires the user to have Python3 installed and has to check to see if the PIP3 dependencies are met.
Edit: those changes are available here if you want to see.
Edit 2: I haven’t committed the changes that work yet, so I’ll do that right now.
Yeah 😦 It’s getting a lot harder now to work on this since I keep getting captchas from Cloudflare. Hopefully I’ll have something but it’s take a while
@AlexIsOK He fixed this with change with TLSv1.3 (for login).
https://github.com/anidl/crunchyroll-downloader-nx/commit/8d853d0d8bdcc88b03a2d59ee6fb80fef9c038b9
Maybe this helps?
https://github.com/ytdl-org/youtube-dl/issues/25437
--tls-min-v1.3 set default TLS minimum to TLSv1.3 (default: TLSv1.2)It’s works on youtube-dl with cookie file (no captcha required), but all tools (cr-dl, crunchy-dl, cr-dl, crunchyroll-dl and others) doesn’t work with login/password … (I tried a lot of testing haha…)
Thx to Cloudflare 🥺