[Bug] A way to get Youtube to ban your IP
Checklist
- [x] I make sure that the issue is NOT a duplicate of pinned issues
- [x] I make sure I am using the LATEST version - check here
- [x] I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
- [ ] I have attached the error report in the issue
Describe the bug
Putting the phone into airplane mode overnight while a video was active causes Youtube to ban your IP for a while.
As a workaround, I guess the app shouldn't try to resume playback after a certain time threshold but instead restart the connection.
Version
5.4.0
Frequency
Often (80-90% of the time)
Device
Samsung A54
Steps to reproduce the bug
- Put the app into SABR mode.
- Open a video, play a bit of it.
- Put your phone into airplane mode and leave it over night.
- In the morning turn off airplane mode, let it reconnect to the internet and open up the app again.
- The app opens in the last video you started playing. Press play
- The video plays for a bit, then the cached part runs out and the app fails to restart the video
- Youtube bans you. You get a message along the lines of "Youtube banned your IP address"
Additional context
No response
A ban across all videos for a while or just temporary on that specific vid?
No you are not banned. Clean the cache or restart the app and it will play fine again. We will modify the outdated dialog in the next version.
I got this message across all videos. Force-closing the app, clearing the cache, clearing the cached metadata all didn't change anything about it.
Disabling wifi and using cellular internet (thus using a different IP) instantly fixed it.
Exception
- User Action: requested stream
- Request: https://www.youtube.com/watch?v=IfhMILe8C84
- Content Country: AT
- Content Language: de-AT
- App Language: de_AT
- Service: YouTube (Anonymous)
- Endpoint: mweb
- Version: 5.4.0
- OS: Linux samsung/a54xnaeea/a54x:14/UP1A.231005.007/A546BXXUBCXK1:user/release-keys 14 - 34
Crash log
org.schabi.newpipe.extractor.exceptions.AntiBotException: Sign in to confirm you’re not a bot
at org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper$1.onSuccess(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:269)
at leakcanary.ObjectWatcher.onResponse(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:84)
at okhttp3.internal.connection.RealCall$AsyncCall.run(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:51)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
at java.lang.Thread.run(Thread.java:1119)
I reproduced it again, this time I took the error report. The result is the same:
- All videos are affected
- Deleting the cached metadata in the pipepipe settings did nothing
- Force-closing the app from the system settings and restarting the app did nothing
- Clearing the app cache from the system settings plus force-closing and restarting the app did nothing
- Turning off wifi and using cellular internet to get a different IP makes the problem disappear