Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
HTTP Error 429: Too Many Requests (caused by HTTPError()); [youtube] #5138
Comments
|
I have the same problem with youtube. HTTP requests without youtube-dl are possible ~# youtube-dl https://www.youtube.com/watch?v=FS2EZ18Fcv8 |
|
Same issue here. Requests without youtube-dl are working fine. URL used: Verbose Output:
|
|
+1 My output: $ youtube-dl https://www.youtube.com/watch?v=j3mhkYbznBk --verbose |
|
Everything is working fine for me from multiple machines all over the world, so I cannot diagnose this issue. Can anyone of you offer a proxy or VPN at an affected machine? If so, please contact me. |
|
It can only be bypassed with an other IP. BTW: I have a server at OVH and it seems their whole IPv6 address space is blacklisted, so changing to an other IPv6 address does not work. Only IPv4 does work. |
|
I do proxy through OVH also. I tried without ovh proxying, and it is the same. |
|
Did someone found a solution for OVH ? Tried 2 VPS, and same issue. |
|
I opened a ticket with OVH support and they escalated it. I think it might be an issue with youtube blocking all OVH ipv6 blocks (since ipv4 works fine). |
|
Is there a way to user ipv4 instead of ipv6 ? (configuring debian maybe ?) |
|
@Aiexis youtube-dl has -4 and -6 parameters that you can use to tell youtube-dl to run it through ipv4 or ipv6. Check the readme/docs |
|
Thank you ;) |
|
@blackpropeller Did you get any reply from OVH so far? I've opened a ticket as well and nobody took care of it so far. |
|
@jefi009 Yup, they replied but they weren't really that helpful.
They pretty much said we're on our own...lol. |
|
@isez I had a feeling OVH couldnt help but i did find it odd that OVH's entire IPv6 block was blocked by youtube (even on servers/systems that have never made a single request to youtube). They had this sort of issue before with IPv4 and were able to sort the issue out with youtube. That's why i asked them to look into it again but for IPv6 this time. The cookies option/solution works fine for now i guess. |
|
@blackpropeller It sounds like they didn't even contact YT. I also noticed that their whole Range is blocked since I've also tried to use servers that never made a request to YT. My guts tell me that it is more likely that someone started a DDOS from within the OVH network towards yt which triggered an automatic system at YT that blocked the OVH range. Their explanation would only make sense if their IPv4 ranges would be blocked as well. |
|
I did also notice that the 429's appeared one week before and lasted only a few hours, on March 5th the 429's also disappeared temporarily after a few hours only to reappear permanently for now. This could indicate A) A test carried out by YT. |
|
Not only OVH is affected, it seems the whole IPv6 space from online.net (another popular french provider) is also blacklisted. |
|
For those using YoutubeDL.py setting source_address with the IPv4 in use works (no IPv4 parameter seen in ydl_opts{}). |
|
I can confirm what bo3rnd says. My IPv6 range at online.net is also blocked by this and I get a captcha. But as jefi009 said, this makes no sense as they should also blacklist ipv4 ranges if it was to block servers. In my case, I use my ipv6 range at online to get an ipv6 for my home machines, so this is really a hassle. |
|
Same here on a OVH server, and if I force IPv4 (using the |
|
Yes with ipv4 goes well with ovh servers.... |
Fix for Youtube dropping connections from OVH ytdl-org/youtube-dl#5138
|
The IPV4 lead to a video that explain you need to do something with the captcha. But still the same issue. |
|
using |
|
Using a VPS provided by Vultr, requests are blocked on both IPv4 and IPv6. I think we should develop a ReCAPTCHA proxy tool to make it fast and easy to solve a captcha and use the cookie. That might be outside the scope of youtube-dl, though. |
|
"-4" and "-6" still seems to be very experimental... (it's not forcing it) |
|
No good from my DigitalOcean droplet either :/ |
|
@bo3rnd why did they blacklist OVH servers ? Crooked Google as always trying to prevent people from downloading videos.. |
|
I think it's against the terms of service not to use their own viewer tbh. Bad but they don't want you to watch the content without their ads. Which is why they only allow CC-BY (in order to relicence it so that you're not allowed to download it). |
|
@dandart CC-BY is the most liberal CC license short of CC0. This license does not imply that you're not allowed to download it, quite the opposite. CC-BY allows others to take a work someone has made and to redistribute it with or without modification as long as you attribute the original author. Meanwhile, YouTube may have some conditions about downloading in their ToS. I dunno, I haven't read the ToS. Usually conditions about downloading are about large-scale, automated downloading of resources (such as videos) and/or scraping of content like titles, descriptions and comments. If anyone knows the official stand YouTube has, if any, I'd like to hear it. |
|
Well, CC-BY is the most liberal in that it is not copyleft: i.e. you can still relicence it to say that you're not allowed to download it! This is what I mean when I think YouTube is doing that. If other CC-licenced videos were allowed on YouTube (such as any -SA) then YouTube wouldn't be able to stop people downloading, and as it is, they don't support anything that stops them blocking you from downloading or stops them making money off of it, obviously for ads. Their ToS says that one is not allowed to download from them, just at all. I've tweeted them but not yet got a response. |
|
I wonder - has anyone tried it with authentication? Maybe it'll work with an API key or a un/pw login cookie? |
|
same here on a DigitalOcean Host located in Frankfurt. IPv6 is blocked, v4 is working. |
|
It's unfortunate, but I can understand why youtube does this. Since providers give their customers large IPv6 block allocations, it's not feasible to block abusers by their IPv6 address - they can simply change or randomise it. Oh, and the bug here is that youtube-dl tries using IPv6 even when youtube is unreachable over IPv6. (Enabling IPv6 over OpenVPN requires additional configuration). |

My version is the last one💯
youtube-dl --version
2015.03.03.1
youtube-dl -f 22 https://www.youtube.com/watch?v=8MMnbeGDzdw
[youtube] 8MMnbeGDzdw: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Thanks for the program and regards