Node-ytdl-core: Get a lot of 416 "Range Not Satisfiable" Errors with the update to 4.0.4

Created on 15 Nov 2020  路  14Comments  路  Source: fent/node-ytdl-core

Hi,

after i updated to version 4.0.4 i directly got a lot of Status code 416 errors - after rolling back to 4.0.3 everything is working fine again.

My highWaterMark is set to 810241024 so 8MB. Making it higher or lower haven't fixed this issue.

bug

All 14 comments

I am having the same issue, seems to happen randomly.

yup im having some major errors as well.

Looks like #751 regressed too, I am algo getting Unable to retrieve video metadata along with HTTP 416, but more frequently than in 4.0.2

any specific videos or formats this happens in? what options are you using?

It seems to be random
I tested my bot with this video: https://www.youtube.com/watch?v=zgezo5I3waM, but I got 416 and "Unable to retrieve video metadata" with https://www.youtube.com/watch?v=6CBp4qylX6I too

my YTDL options are

filter: 'audioonly',
highWaterMark: 1 << 25,
quality: 'highestaudio',
requestOptions: {
    headers: {
        Authorization: `Bearer ${ytapikey}`,
    }
},

Looks like this was fixed in 4.0.5

Updated to 4.0.5 and the problem occurs for every video I'm trying to download.
I'm using options

    quality: 'lowestaudio',
    audioFormat: 'mp3',
    filter: 'audioonly',

I get lots of errors on 4.0.5 aswell. Getting lots of Error: input stream: Video unavailable

I had to downgrade to 3.4.2 to get rid of those errors 416. Tried many combinations of filter/quality by following the README, but either I got "Output format is not available" or error 416.
I will upgrade once this bug is fixed.

I recommended to use 4.0.3. Almost errors will not be occurred with a valid cookies.

I ran into the same problems on one of my servers, consistently, it seems like only music videos are affected, such as https://youtube.com/watch?v=jJPMnTXl63E, https://www.youtube.com/watch?v=dQw4w9WgXcQ, https://www.youtube.com/watch?v=SlPhMPnQ58k, and https://www.youtube.com/watch?v=QJO3ROT-A4E, on another server, I got Error: input stream: Video unavailable instead of this

i wasn't able to reproduce this myself, but for those getting it, try updating to the latest version 4.0.6, which includes some fixes to requests, and see if it fixes it

I didn't get 416 anymore, but when using a lower highWaterMark, the Discord bot randomly skips some parts of the video (and no error in STDERR)

i wasn't able to reproduce this myself, but for those getting it, try updating to the latest version 4.0.6, which includes some fixes to requests, and see if it fixes it

It seems to be fixed on 4.0.6.

Yes I confirm, after trying a bunch of videos that I'm not getting the 416 errors anymore after upgrading to 4.0.6

Was this page helpful?
0 / 5 - 0 ratings