[BUG]: HTTPError 406: Not Acceptable
Closed this issue · 6 comments
Program version
5.1.5
Operating System
Windows
Type
CLI
Service
Crunchyroll
Command used
node ./index.js --service "crunchy" -s GY5P48XEY -e 1 -q 1 --noaudio --chapters false
Show ID
GY5P48XEY
Episode
1
Console Output
------------------------------
[S103E1] - Cruelty [✓ Japanese]
Requesting: [GRG5JD92R] Demon Slayer: Kimetsu no Yaiba - 1 - Cruelty
Chapter request successful
Selecting raw stream
Full stream found! (✓1: adaptive_chrome_dash_drm/jpn/- )
Downloading video...
Playlists URL: https://cr-play-service.prd.crunchyrollsvc.com/v1/manifest/GRG5JD92R/evs3/11e5e826672044f6a956d44b5e866794/assets/p/778fa7fb69bd5fee895f433654a5690b_,3649266.mp4,364
9267.mp4,3649265.mp4,3649263.mp4,3649264.mp4,.urlset/manifest.mpd?playbackGuid=05-d06eac6f-907a-4524-a771-7b4248443a36&accountid=98d6023c-596c-5158-9f2d-3e0357552d17 (adaptive_chrome_dash_drm/jpn/-)
Servers available:
vod-fy.crunchyrollcdn.com
Available Video Qualities:
[1] 428x240 (485KiB/s)
[2] 640x360 (971KiB/s)
[3] 848x480 (1939KiB/s)
[4] 1280x720 (3884KiB/s)
[5] 1920x1080 (7783KiB/s)
Available Audio Qualities:
[1] 64kB/s
[2] 96kB/s
[3] 128kB/s
Selected quality:
Video: 428x240 (485KiB/s)
Audio: 64kB/s
Server: vod-fy.crunchyrollcdn.com
Stream URL: https://vod-fy.crunchyrollcdn.com/evs3/11e5e826672044f6a956d44b5e866794/assets/p/778fa7fb69bd5fee895f433654a5690b_,3649266.mp4,3649267.mp4,3649265.mp4,3649263.mp4,3649264.mp4
Total parts in video stream: 354 (36*10)
Resume data found! Trying to resume...
Resume data is ok!
Adding content to «D:\projects\multi-downloader-nx\lib\videos\temp-GRG5JD92R.video.enc.m4s»...
Resuming download from part 161...
10 of 354 parts downloaded [3%] (41s | 2.5Mb/s)
20 of 354 parts downloaded [6%] (33s | 3.1Mb/s)
30 of 354 parts downloaded [8%] (31s | 3.2Mb/s)
40 of 354 parts downloaded [11%] (30s | 3.4Mb/s)
50 of 354 parts downloaded [14%] (28s | 3.5Mb/s)
60 of 354 parts downloaded [17%] (25s | 3.6Mb/s)
70 of 354 parts downloaded [20%] (24s | 3.7Mb/s)
80 of 354 parts downloaded [23%] (23s | 3.7Mb/s)
90 of 354 parts downloaded [25%] (22s | 3.7Mb/s)
100 of 354 parts downloaded [28%] (21s | 3.8Mb/s)
110 of 354 parts downloaded [31%] (20s | 3.7Mb/s)
120 of 354 parts downloaded [34%] (19s | 3.8Mb/s)
130 of 354 parts downloaded [37%] (18s | 3.7Mb/s)
140 of 354 parts downloaded [40%] (17s | 3.7Mb/s)
150 of 354 parts downloaded [42%] (17s | 3.7Mb/s)
160 of 354 parts downloaded [45%] (16s | 3.6Mb/s)
170 of 354 parts downloaded [48%] (15s | 3.6Mb/s)
180 of 354 parts downloaded [51%] (15s | 3.6Mb/s)
190 of 354 parts downloaded [54%] (14s | 3.6Mb/s)
200 of 354 parts downloaded [56%] (12s | 3.6Mb/s)
Total parts in audio stream: 355 (36*10)
Saving stream to «D:\projects\multi-downloader-nx\lib\videos\temp-GRG5JD92R.audio.enc.m4s»...
Download and save init part...
Init part downloaded.
10 of 355 parts downloaded [3%] (8s | 1.5Mb/s)
20 of 355 parts downloaded [6%] (7s | 1.7Mb/s)
30 of 355 parts downloaded [8%] (6s | 1.7Mb/s)
40 of 355 parts downloaded [11%] (7s | 1.6Mb/s)
50 of 355 parts downloaded [14%] (6s | 1.6Mb/s)
60 of 355 parts downloaded [17%] (6s | 1.6Mb/s)
70 of 355 parts downloaded [20%] (6s | 1.6Mb/s)
80 of 355 parts downloaded [23%] (6s | 1.6Mb/s)
90 of 355 parts downloaded [25%] (6s | 1.6Mb/s)
100 of 355 parts downloaded [28%] (6s | 1.6Mb/s)
110 of 355 parts downloaded [31%] (5s | 1.6Mb/s)
120 of 355 parts downloaded [34%] (5s | 1.6Mb/s)
130 of 355 parts downloaded [37%] (4s | 1.7Mb/s)
140 of 355 parts downloaded [39%] (4s | 1.7Mb/s)
150 of 355 parts downloaded [42%] (4s | 1.7Mb/s)
160 of 355 parts downloaded [45%] (4s | 1.7Mb/s)
170 of 355 parts downloaded [48%] (4s | 1.6Mb/s)
180 of 355 parts downloaded [51%] (4s | 1.6Mb/s)
190 of 355 parts downloaded [54%] (4s | 1.6Mb/s)
200 of 355 parts downloaded [56%] (3s | 1.5Mb/s)
210 of 355 parts downloaded [59%] (3s | 1.5Mb/s)
220 of 355 parts downloaded [62%] (3s | 1.5Mb/s)
230 of 355 parts downloaded [65%] (3s | 1.5Mb/s)
240 of 355 parts downloaded [68%] (3s | 1.5Mb/s)
250 of 355 parts downloaded [70%] (2s | 1.5Mb/s)
260 of 355 parts downloaded [73%] (2s | 1.5Mb/s)
270 of 355 parts downloaded [76%] (2s | 1.5Mb/s)
280 of 355 parts downloaded [79%] (2s | 1.5Mb/s)
290 of 355 parts downloaded [82%] (1s | 1.5Mb/s)
300 of 355 parts downloaded [85%] (1s | 1.5Mb/s)
310 of 355 parts downloaded [87%] (1s | 1.5Mb/s)
320 of 355 parts downloaded [90%] (1s | 1.5Mb/s)
330 of 355 parts downloaded [93%] (1s | 1.5Mb/s)
340 of 355 parts downloaded [96%] (0s | 1.5Mb/s)
350 of 355 parts downloaded [99%] (0s | 1.4Mb/s)
355 of 355 parts downloaded [100%] (0s | 1.4Mb/s)
Decryption Needed, attempting to decrypt
[ERROR] HTTPError 406: Not Acceptable
[ERROR] HTTP Status 406 – Not Acceptable
[ERROR] Body: <!doctype html><html lang="en"><head><title>HTTP Status 406 – Not Acceptable</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 406 – Not Acceptable</h1></body></html>
[ERROR] Failed to get encryption keys
[ERROR] Download error: Unable to download episode 1 from GY5P48XEY
Additional Information
I get an error every time I try to get the key.
It doesn't matter whether it's through the GUI or CLI.
The paths to external utilities are configured.
device_client_id_blob
device_private_key
Is github scam/spams really a thing now? Wild.
Well back on topic, from the looks of it, unless I'm completely off basis, that CDM looks like it is from an old android version, and it's possible it's being blocked
Well back on topic, from the looks of it, unless I'm completely off basis, that CDM looks like it is from an old android version, and it's possible it's being blocked
Thank you for the quick response. Unfortunately, I don't have other keys for testing. Could I send it to you for verification?
Thank you for the quick response. Unfortunately, I don't have other keys for testing. Could I send it to you for verification?
Do you have a discord account? If so, join our discord
I generated new keys. And now I have a new error. I also output some data to the logs to make it clear what's happening.
Decryption Needed, attempting to decrypt [ERROR] RangeError: ERR_BUFFER_OUT_OF_BOUNDS { encryptionKeys: [], authData: { custom_data: '[REDACTED]', token: '[REDACTED]' }, decReq: { ok: true, res: Response { status: 201, statusText: 'Created', headers: Headers { date: '[REDACTED]', 'content-type': 'application/jose+json', 'content-length': '992', connection: 'keep-alive', 'cache-control': 's-maxage=0, max-age=0', 'access-control-allow-origin': '*', 'x-cache': 'Miss from cloudfront', via: '[REDACTED]', 'x-amz-cf-pop': '[REDACTED]', 'x-amz-cf-id': '[REDACTED]', 'cf-cache-status': 'DYNAMIC', 'set-cookie': '[REDACTED]', server: 'cloudflare', 'cf-ray': '[REDACTED]' }, body: ReadableStream { locked: true, state: 'closed', supportsBYOB: true }, bodyUsed: true, ok: true, redirected: false, type: 'basic', url: 'https://beta-api.crunchyroll.com/drm/v1/auth' } } } [ERROR] Failed to get encryption keys [ERROR] Unable to download selected episode 1
The new error is ERR_BUFFER_OUT_OF_BOUNDS.
PS: Fixed with the help of the Author. The Node version must be 20.