Skip to content
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

405 Error on reCaptcha page #11661

Open
6 tasks done
wesleymg opened this issue Oct 30, 2024 · 51 comments
Open
6 tasks done

405 Error on reCaptcha page #11661

wesleymg opened this issue Oct 30, 2024 · 51 comments
Labels
bug Issue is related to a bug help wanted Help is wanted in fixing this issue youtube Service, https://www.youtube.com/

Comments

@wesleymg
Copy link

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.27.2

Steps to reproduce the bug

  1. Get to a point where a reCaptcha is required
  2. Tap Solve

Expected behavior

Video should work normally, or reCaptcha should appear and be solved.

Actual behavior

Google reports a 405 error, no reCaptcha appears, and ergo cannot be solved, videos are unwatchable.

Screenshots/Screen recordings

Screenshot_2024-10-29-23-49-08-99_2d25272d9bb7c9f889502d429df8c72b

Logs

No response

Affected Android/Custom ROM version

OxygenOS 14.0

Affected device model

OnePlus 12R

Additional information

I can intermittently watch a video, especially if I disconnect from my wifi, but after one or two, I can no longer use the app successfully.

@wesleymg wesleymg added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Oct 30, 2024
@BaconCondensate
Copy link

Can also confirm the issue, also happens with trending tabs and not just videos. Switching networks (eg. VPN) temporarily solves the issue

My uneducated assumption is that google is doing some A/B testing in specific regions/connection

@LucaWight
Copy link

It also carries over to the regular YouTube app which also refuses to work now.

@AsyrafFile
Copy link

It also occurs bug #11139 after I restarted the the router.

@vorsn
Copy link

vorsn commented Oct 30, 2024

This is maybe not an actual recaptcha error. When you try to use YT on a browser in the same network you get 429 errors

We're sorry... ... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.

You can play sporadic videos. Updating feeds only adds 2-3 videos every x minutes. So this seems to be some kind of burst limiting. I hope you can find a workaround, looks bad.

As an user you should not update your feed anymore to avoid blocking youtube page in general.

@junelac
Copy link

junelac commented Oct 30, 2024

It seems that YouTube started to ban IP of Newpipe users. The ban is not complete, I'm still able to watch videos on YouTube with a browser, but there are are errors message and I can't connect to my account. When using a VPN it works for a while, then I'm banned again

@ShareASmile ShareASmile added youtube Service, https://www.youtube.com/ and removed needs triage Issue is not yet ready for PR authors to take up labels Oct 30, 2024
@aufuss
Copy link

aufuss commented Oct 30, 2024

I encountered the same Problem, first time yesterday 29.10. Switching to Browser works (Vanadium). Rebooting the phone helps (for a while).
Pixel 7a with GrapheneOS and no Google apps.

@BaconCondensate
Copy link

Seems like every alt youtube platform gets the issue. newpipe, freetube, invidious. Although the error seems different

Likely something changed in the backend

@rjdg14
Copy link

rjdg14 commented Oct 30, 2024

It seems that YouTube started to ban IP of Newpipe users. The ban is not complete, I'm still able to watch videos on YouTube with a browser, but there are are errors message and I can't connect to my account. When using a VPN it works for a while, then I'm banned again

It sounds to me a little like a rate limiting related error, especially since other clients are getting a 429 (too many requests) error.

Are the IP blocks others are experiencing temporary and going away after a few minutes to hours of requests from the app stopping? Also, how many requests has it taken others here within a certain period for the issue to occur?

I think YouTube has used a form of rate limiting for a while so what has likely changed?

@BaconCondensate
Copy link

It seems that YouTube started to ban IP of Newpipe users. The ban is not complete, I'm still able to watch videos on YouTube with a browser, but there are are errors message and I can't connect to my account. When using a VPN it works for a while, then I'm banned again

It sounds to me a little like a rate limiting related error, especially since other clients are getting a 429 (too many requests) error.

Are the IP blocks others are experiencing temporary and going away after a few minutes to hours of requests from the app stopping? Also, how many requests has it taken others here within a certain period for the issue to occur?

I think YouTube has used a form of rate limiting for a while so what has likely changed?

Considering accessing through the browser still works, I don't think it's rate limiting. Unless they have different limit for embeds, even the trending tab (not video) could get the error too though

@rjdg14
Copy link

rjdg14 commented Oct 30, 2024

Could this have anything to do with the problem perhaps (YouTube releasing a new layout)?

https://old.reddit.com/r/youtube/comments/1gev7jz/anyone_getting_429_cant_do_anything_in_android_app/lujkzxn/

I'm not sure if any of the users in that thread use third party clients, but if not then it could be a more general glitch with a new YouTube API that is causing it to trigger its rate limit block.

These are some related Reddit threads from the past day:

https://www.reddit.com/r/youtube/comments/1gf4a3y/youtube_says_im_offline_but_im_not_affecting/

https://www.reddit.com/r/youtube/comments/1gffluo/does_anyone_know_how_to_fix_error_429/

https://www.reddit.com/r/youtube/comments/1gfkqgn/what_the_actual_hell_is_going_on/

@Nachoswithpepper
Copy link

I fear that this might be another Ban-wave as previously mentioned- aimed at specific IPs. Seems both Newpipe and GrayJay are suffering, though GrayJay is able to play videos through a different stream (fails to retrieve iOS stream data, fallsback to UMP) but still returns a 429 Error when prompting refresh/retry on the Home tab, just as Newpipe fails on both Trending/Subscriptions.

@Cf0cus
Copy link

Cf0cus commented Oct 30, 2024

same exact issue, to add on it I checked youtube itself in the web of mobile it says "invalid response" and also if you use the youtube app it says smth error 429

@AudricV
Copy link
Member

AudricV commented Oct 30, 2024

Please only comment if you have something useful to provide, thank you!

This is likely triggered by making too many requests to YouTube's internal API within a certain period of time. Refreshing YouTube subscriptions without fast mode is what probably triggers the limit, so it is probably a good idea to disable auto-refresh of subscriptions and avoid refreshing your feed if you have an important number of subscriptions from YouTube for now.

If you stop connecting to YouTube in any way for an unknown amount of time, you should be able to get your access back.

The response the app gets is described in this comment: #11661 (comment) (the HTML response also can be raised if you set an non Google or YouTube Origin or Referrer HTTP header on these requests (and this time you get an 403 HTTP error and not a 429 one)).

The app interprets any HTTP 429 error as a captcha request, which is very bad. This must be changed, as it also affects other services (PeerTube for instance if you reach the limit of requests within a certain amount time for your IP the instance has set).

Help is wanted to determine what amount of requests within a certain period of time triggers the error and how much time you need to wait to get back valid responses.

fails to retrieve iOS stream data, fallsback to UMP

UMP is a streaming media protocol used by YouTube and not a way to get URLs of streams.

@AudricV AudricV added the help wanted Help is wanted in fixing this issue label Oct 30, 2024
@rjdg14
Copy link

rjdg14 commented Oct 30, 2024

Is it likely that subscription refreshes were also what was causing the "sign in to confirm you are not a bot" error that some users were reporting earlier this year? In my case I have never used NewPipe or any similar software for keeping track of subscriptions and never had that problem. I'm currently away from home and don't want to load any videos on my data limited mobile connection, but can confirm that the trending page and search pages within NewPipe load normally.

Is the issue known to be affecting those who do not use NewPipe for channel subscription purposes?

@terranora
Copy link

  1. Activate fast mode (feed loading)
  2. Turn off your Wi-Fi (or mobile network) for 15+ minutes to change your IP

@rjdg14
Copy link

rjdg14 commented Oct 30, 2024

There is a setting called Feed Update Threshold. It's possible this issue is occuring for those who have it set to "always update".

@ls-alh
Copy link

ls-alh commented Oct 31, 2024

I'm experiencing this issue too, as of about 24 hours before this comment. My home and work networks are both affected, but mobile data is not. Maybe fingerprinting is involved? Maybe because I spend much less time on mobile networks?

Some of my relevant settings:
fetch from dedicated feed (fast mode?) - off
feed update interval - 1 hour
auto refresh - 351 channels, frequency 4 hours

It's also important to note that I'm a heavy user. I'm seeing this issue on every device connected to these networks, even after signing in. Sometimes I can load a video in the browser, sometimes not.

@CBSkarmory
Copy link
Contributor

Help is wanted to determine what amount of requests within a certain period of time triggers the error and how much time you need to wait to get back valid responses.

Refreshing ~500 subscriptions (taking ~2min) (fetch from dedicated feed OFF) appears sufficient to trigger the error, though not immediately (after a few min).

Waiting 24hrs initially was sufficient to get back valid responses.

@rjdg14
Copy link

rjdg14 commented Oct 31, 2024

It may be that for those with, say, 500 subscriptions, YouTube is interpreting the auto refresh as though you are loading 500 channel pages in a very short period of time, which I think would trigger its probably temporary rate limit block. It's common for Google to display an "unusual traffic" captcha page if you make too many searches in a short period, and I think YouTube is very similar in this regard.

Is it possible that YouTube has simply tightened the threshold of their rate limit as a way of making scraping more difficult, and this is interfering with those who have a large number of auto-updating subscriptions in NewPipe?

Does the issue occur in the kind of scenarios where a ReCaptcha would have previously been shown? I've never had NewPipe ask for a captcha when browsing YouTube, and unlike most here do not have any subscriptions in it.

@burritoOverflow
Copy link

burritoOverflow commented Oct 31, 2024

I've encountered this on a few occasions this week now.
It seems YouTube then blocks your IP for some time (this will apply to all clients (even "native" clients) on that network.

I've not been able to restore use of the service in any fashion outside of calling my ISP and getting a new DHCP lease.

Hard to replicate the cause given the consequences of the failure---but it seems the number of requests sent by refreshing subscriptions could be a cause.

I'm able to occasionally view videos on a web client. Many requests fail with 403 or 429.

I hadn't considered the 429 "appropriate" until I read this thread. No idea how long the "rate-limiting" lasts. I've not had it restored after waiting any duration, only via a new IP address.

EDIT: Just saw @CBSkarmory's response. I'll try waiting 24h for now.

@rjdg14
Copy link

rjdg14 commented Oct 31, 2024

I've tested both NewPipe and FreeTube at home today and haven't had any problems, though I don't use either for subscriptions, and I think this is probably what's causing some users to get this error. My advice would be to delete your subscriptions from the app (or at minimum disable auto refresh) and simply make a note of your favourite channels so you can remember their names and search for them manually if you want to check if they've added a new video.

In the case of FreeTube, it looks like many users are currently able to use it as normal ('d imagine the same is true of NewPipe), so I suspect the 429 error is probably affecting the minority of users of both apps who have a lot of subscriptions and who have auto refresh turned on.

@Cooked14
Copy link

I've not been able to restore use of the service in any fashion outside of calling my ISP and getting a new DHCP lease.

What's DHCP lease? I live in a sh*thole country so I'm not sure they'll even understand me if I say that. Is it the same as asking for an IP change?

@burritoOverflow
Copy link

I've not been able to restore use of the service in any fashion outside of calling my ISP and getting a new DHCP lease.

What's DHCP lease? I live in a sh*thole country so I'm not sure they'll even understand me if I say that. Is it the same as asking for an IP change?

Yes, exactly.

My network hardware has functionality to relinquish the lease, but doesn't grant a new IP without intervention from my ISP.

@rjdg14 cheers, I'll be more cautious.

Ironically enough, YT seems to 4XX sign-in attempts from "legitimate" first party clients, so I've not found a work around for this outside of new IP addr.

@kingthrillgore
Copy link

kingthrillgore commented Oct 31, 2024

You might be able to disconnect router from your network for some time and seeing if you get a new IP on re-connection--I have no suggestions as to the time to do that nor the success. It's not worked for me, but this may differ by ISP. I have to travel for a day this weekend so I'll leave my hardware off the network and see if I get a new IP on return.

Unfortunately I tried that through hardware power cycling and Xfinity is no longer giving me any IP I please, its giving me the same one I had on move-in, and the next DHCP release besides me calling and playing 20 questions is in 3 days. I have to think with the dearth of IPv4 addresses they've just started assigning addresses. I am left wondering if Google has me in the doghouse and for how long (indefinite would not be fun).

I don't know of any customer service contacts at YouTube either to plead my case. I'm probably not going to use NewPipe again for the forseeable future, no disrespect to the maintainers. This is a bad hand we've been dealt.

@burritoOverflow
Copy link

burritoOverflow commented Nov 1, 2024

Also worth mentioning that even if a new IP solves the issue (it did for me twice), it seems that as soon as your IP is flagged, you're in the dog house for some indeterminate time.

Seems to be zero tolerance. In each instance with me, once one request failed, all clients started failing immediately.

Indefinite seems extreme, especially considering these are residential addresses that are typically not static assignments (excluding @rjdg14 above)

Would be a bad deal if random people other than NewPipe/AdBlock/DNS Filtering users start getting these flagged addresses after they're released and lose YT access.

@dev-a
Copy link

dev-a commented Nov 1, 2024

few ideas
I too have encountered the same problem (currently it seems to be working, I don't want to break everything again right away)
I too have a lot of channels followed (around 300)
When newpipe wasn't working, I was able to watch youtube via the browser (on a same device) (so no ip blocking, maybe something about the headers).

Now, while waiting for the problem to be solved, I've switched to a light update of my feeds:
"fetch from dedicated feed when available"
it seems to be working for the moment (maybe complete verification contributes to the problem )

@kingthrillgore
Copy link

I can confirm that after 24 hours the blocks stop, so at least its a day's wait.

@jonfre
Copy link

jonfre commented Nov 2, 2024

Updating a number of subscriptions at once is a clear trigger to rise the bot flag. What about adding an update strategy to mimic a regular user, i.e. spreading out subscription updates randomly over the day.

The frequency of full updates could be configurable to x times a day or week.

This way you would have a feed automatically updated with some hours of delay for each subscription, without acting like a bot.

This could also be combined with some subscription priority, e.g. to have multiple update configurations and use one of them for each subscription. This would be more flexible than a blacklist as suggested in #11669.

@GlytchMeister
Copy link

I only have 124 subscriptions and I'm being blocked.
I'm using a VPN tho. I just switched endpoints and updated my list and the next video I tried to watch returned "content unavailable". Switched endpoints again, didn't update my list, same video isn't blocked, nor any others.

I agree, a different way of updating the subscription list needs to be implemented. Maybe shuffling with a basic pseudo-RNG, then taking that list and spacing each channel update out evenly throughout the day. And maybe check the list against trending to make sure if one of your channels pops up on trending, it shows up immediately in the subscriptions feed.

@aufuss
Copy link

aufuss commented Nov 3, 2024

I can reliably reproduce the 405 error when I refresh my 500+ subscriptions.

YouTube still works always with my browser, it seems totally unaffected.

After restarting my degoogled android newpipe works normally reliably.

I just checked my ip adress with
https://whatismyipaddress.com/
and after restart my ISP gives my a new IP address.
I use mobile data.

But if my IP is somehow flagged, the browser shouldn't work too, right?

I have organized my subscriptions in channel groups. Biggest one with 92 channels. Since they can be refreshed individually and it didn't trigger the 405 error, that's my solution for now.

@edgar-ragde
Copy link

I was the one who opened duplicate issue #11675.
So approximately after 12+ hours browser version of YouTube started working, with intermittent "invalid response received" error, requiring me to refresh the page.
But official YouTube app is still giving me 429 error.
So the ban was not permanent, but there are still consequences. I'll report back after 24 hours.
One interesting detail - right after I was blacklisted, I decided to ask my friend if YouTube is working for him. Recently I started using Google Keyboard's voice to text feature, and keyboard started to throw out occasional connection error issue, even though it never did before. Coincidence?
Another reason to de-Google, so many of us depend way too much on Google. But de-googling takes time, in the meantime this is concerning, imagine losing access to your email, drive, when you need it the most.

@sidgdev
Copy link

sidgdev commented Nov 4, 2024

Using ByeDPI android app in VPN mode which circumvents DPI by creating a local VPN but doesn't change IP resolved this error on New Pipe for me and even resolved other errors in GrayJay & FreeTube as well. Turning off the app quickly brought back the same errors & again turning on errors are gone.

Believe YouTube is able differentiate requests from NewPipe & other invidious clients from browser/android client based on packet inspection but not outright rejecting requests based on IP ban.

This is a useful workaround which is working for me right now, kindly let me know if its working for others.

Link to app-

https://github.com/dovecoteescapee/ByeDPIAndroid/releases

@vehosah
Copy link

vehosah commented Nov 4, 2024

For two videos it went nice, but here we are again 429 that's all we know

@sidgdev
Copy link

sidgdev commented Nov 4, 2024

Not experienced any 429 errors yet, hope you are using app in VPN instead of proxy mode.

@BaconCondensate
Copy link

BaconCondensate commented Nov 4, 2024

Tested that method, doesn't seem to work. I don't think DPI protection will even do anything when Google isn't doing MITM because they are the endpoint

Newpipe will probably need to fake being a browser (?)

@vehosah

This comment was marked as spam.

@ShareASmile
Copy link
Collaborator

Don't quote the whole text ,
It presents a wall of text to be scrolled down for future readers of this ticket.

I have edited comments with long text quotes.

@vehosah

This comment was marked as off-topic.

@vehosah

This comment was marked as spam.

@ThatAsshe
Copy link

Help is wanted to determine what amount of requests within a certain period of time triggers the error and how much time you need to wait to get back valid responses.

Refreshing ~500 subscriptions (taking ~2min) (fetch from dedicated feed OFF) appears sufficient to trigger the error, though not immediately (after a few min).

Waiting 24hrs initially was sufficient to get back valid responses.

Thank you for this contribution! I was looking for an answer for a few hours on why regular Youtube was giving me the error 429 and 405 on the Tubular app, and I happen to have more than 600 subscriptions oopsie 😅

@realquink
Copy link

Adding to the discussion. I use NewPipe daily about 130 subs on a phone and I use a VPN via the router. In total 3 devices use NewPipe throughout a given day on the same IP. Today I received this error for the first time.

@rabidrivas
Copy link

Freetube seems to work, It uses RSS to avoid rate limiting. Could it be fixed impementing something like that?

@ThatAsshe
Copy link

Adding to the discussion. I use NewPipe daily about 130 subs on a phone and I use a VPN via the router. In total 3 devices use NewPipe throughout a given day on the same IP. Today I received this error for the first time.

Wait exactly 24 hours and the temp. ban will be lifted, after that what I've done is to create channel groups in the 'Subscriptions' section to reduce the amount of subbed channels that'd update at once, delete the 'What's New' tab from the Main page (settings > content > content of main page) to avoid updating the list by accident or just delete your subscriptions at all until a new fix comes out!

@rabidrivas
Copy link

Adding to the discussion. I use NewPipe daily about 130 subs on a phone and I use a VPN via the router. In total 3 devices use NewPipe throughout a given day on the same IP. Today I received this error for the first time.

Wait exactly 24 hours and the temp. ban will be lifted, after that what I've done is to create channel groups in the 'Subscriptions' section to reduce the amount of subbed channels that'd update at once, delete the 'What's New' tab from the Main page (settings > content > content of main page) to avoid updating the list by accident or just delete your subscriptions at all until a new fix comes out!

Yeah, or if you are lazy, update subs with a vpn

@tauch
Copy link

tauch commented Nov 11, 2024

I can confirm:
Refreshing the subscribed feeds (~500) instantly triggers an IP ban (that persists for approx. a day).
While the ban is active, NewPipe will prompt to solve a captcha, but that function does fail when attempted in NewPipe.
Note: The ban also affects playback via youtube-nocookie, where I get redirected to youtube while a ban is active.

Solution-Ideas:
I'd really love to see a triggerable background updater for the feeds, where the requests/min can be adjusted or even better, where NewPipe remembers which channels did not have new content for a long time, and then check those much more seldomly (reducing the necessary requests to Youtube).
A first work-around for the ban-problem could even be a simple setting to introduce a fixed minimum-delay between feeds during update (this way the update will take ages, but that could avoid getting the IP banned).

@realquink
Copy link

Wait exactly 24 hours and the temp. ban will be lifted, after that what I've done is to create channel groups in the 'Subscriptions' section to reduce the amount of subbed channels that'd update at once, delete the 'What's New' tab from the Main page (settings > content > content of main page) to avoid updating the list by accident or just delete your subscriptions at all until a new fix comes out!

Confirming this is right. Ban is lifted and I can load and play videos.

@GameOverFlowChart
Copy link

The suggested method with dpi protection worked for a while (don't ask me why that works) but seems like thats also blocked now.
YouTube works in the browser (except for comments which might be a hint), but newpipe and the official YouTube app have troubles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug help wanted Help is wanted in fixing this issue youtube Service, https://www.youtube.com/
Projects
None yet
Development

No branches or pull requests