-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Access to rr4---sn-qxaeenlz.googlevideo.com was denied (Status code: 403) #31
Comments
have you got solution? |
Due to recent youtube changes, you have to update to the latest version and download the stream from the same ip (and maybe the cookies). So if you want to download it from another client, you have to download it to your server and use other methods to download it from your server. |
The issue is that I use the library on the server and I stream the video to my client myself. So, no other IP is used or anything. And it still, randomly, throws the error. |
It seems youtube blocked download some itag, try changing the format, quality or filter options |
FYI this issue may be related to this pr |
I've also started getting issues |
Well after fiddling with all permutations and combinations my assumption is there is some kind of protection on official channels or some strings. So If i tried to getinfo of official music video the stream gives 403 error but if I do a getinfo of same song uploaded by someone else it works. example. This works @msalik42 |
403 fixed or any solutions yet? |
I disabled cache on |
https://youtu.be/ozckx6_Z2a4 |
i switched to another package thats working at the moment, but docs are not easy to pick up |
Weird, I don't have any problem with it, can you test with browser headers like user-agent, origin,... and cookies. |
Now, the local environment is also getting a 403 error. |
Doens't work. Tried it with a few videos, for most of them it logs "server responded with not a 2.x.x status code |
The same - 403 on some videos - others are being downloaded normally. https://www.youtube.com/watch?v=6OZQ9Y2c1kY - works https://www.youtube.com/watch?v=FavdK4bv56Q - does not work |
Does this issue appear to other libraries / tools too? Such as yt-dlp, youtube-dl etc? |
After I updated to the newest release, these problems are completely gone. |
Yes, but with the same video, sometimes it returns a 403 error, and sometimes it works. |
Are you on the latest @fsholehan? |
Suddenly 403s are back, with almost every single stream. |
Yes, I'm on the latest version |
It looks like YouTube is conducting A/B testing to prevent bots. I’ll look into their anti-bot token and update the package after my working hours. |
Please refer to the following URL: https://x.com/justusecobalt/status/1799043789967036620 |
I did some testing and found out that using cookies of a yt premium account doesn't give errors, while without cookies or with the cookies of a non premium account it gives the 403 error |
I also tried with the premium account and it works without any error. |
yt-dlp/yt-dlp#10457 Also: yt-dlp/yt-dlp#10648 |
Ran the following code and it returns the video URLs, But when I try to access the files, it says access denied
const ytdl = require("@distube/ytdl-core");
ytdl.getBasicInfo("https://www.youtube.com/watch?v=eFe8bJ9e_FA").then((info) => {
console.log(info);
});
The text was updated successfully, but these errors were encountered: