PipePipe icon indicating copy to clipboard operation
PipePipe copied to clipboard

[Bug] [Fixed in 4.7.5] YouTube fails to play if logged in : 403 error

Open 3Fish opened this issue 1 year ago • 22 comments

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
  • [x] I have attached the error report in the issue

Describe the bug

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=RD0tDgYz8kg
  • Content Country: DE
  • Content Language: de-DE
  • App Language: de_DE
  • Service: YouTube (Logged in)
  • Version: 4.7.3
  • OS: Linux Android 16 - 36
Crash log

com.google.android.exoplayer2.ExoPlaybackException: Source error
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:644)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.dispatchMessage(Looper.java:315)
	at android.os.Looper.loopOnce(Looper.java:251)
	at android.os.Looper.loop(Looper.java:349)
	at android.os.HandlerThread.run(HandlerThread.java:100)
Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403
	at org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open(YoutubeHttpDataSource.java:521)
	at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:263)
	at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:52)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:796)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:609)
	at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
	at com.google.android.exoplayer2.source.chunk.InitializationChunk.load(InitializationChunk.java:99)
	at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412)
	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)


Frequency

Always (100% of the time)

Device

No response

Steps to reproduce the bug

No response

Additional context

No response

3Fish avatar Oct 21 '25 13:10 3Fish

I'm having this problem as well

yt-kevincarrera avatar Oct 21 '25 14:10 yt-kevincarrera

Same as well

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=L8Cp3qKMqNw
  • Content Country: US
  • Content Language: en
  • App Language: en_US
  • Service: YouTube (Logged in)
  • Version: 4.7.3
  • OS: Linux RP1A.200720.009 11 - 30
Crash log

com.google.android.exoplayer2.ExoPlaybackException: Source error
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:644)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:223)
	at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403
	at org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open(YoutubeHttpDataSource.java:521)
	at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:263)
	at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:52)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:796)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:609)
	at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
	at com.google.android.exoplayer2.source.chunk.InitializationChunk.load(InitializationChunk.java:99)
	at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:923)


ZenOrion avatar Oct 21 '25 14:10 ZenOrion

Same for me as well

SGR21gtb avatar Oct 21 '25 15:10 SGR21gtb

Signing out from YouTube inside the app resolved the issue for me.

Stubennerd avatar Oct 21 '25 15:10 Stubennerd

Will remain signed out at the moment until a fix comes up

SGR21gtb avatar Oct 21 '25 16:10 SGR21gtb

Hello @InfinityLoop1308 same Issue here !

https://private.eltux.fr/?9c4ef9a70e9b9a52#DcLdHtcQ4LAE311ZUWBMKLNLAqzWJkdbezJeMGP9iN6t

Priveetee avatar Oct 21 '25 17:10 Priveetee

I also have the same problem.

Shayan-To avatar Oct 21 '25 17:10 Shayan-To

Duplicates of InfinityLoop1308/PipePipe-X#22

Unfortunately, logging out and even switching from Wi-Fi to mobile data afterwards did not help me.

edit: Later, it worked again without logging in. Apparently, you have to wait for the current block to expire.

Sam4000der2 avatar Oct 21 '25 17:10 Sam4000der2

I also managed to get around the problem by clearing the cache, and restarting the app. However, it's only temporary, so you have to do it each time this issue occurs.

DUOLabs333 avatar Oct 21 '25 20:10 DUOLabs333

Signing out of my account did work for me

Jaedinator avatar Oct 21 '25 23:10 Jaedinator

Logging out and cache clear did not resolve for me. Sounds like the only thing that will resolve is time after log out.

greg-hellings avatar Oct 22 '25 01:10 greg-hellings

yeah, it feels like issue InfinityLoop1308/PipePipe#1441 2.0

AlexRulesVGCP avatar Oct 22 '25 12:10 AlexRulesVGCP

The error below indeed occurs when logged in, but when not logged in, another one occurs that says the IP is blocked by youtube.

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=an9E8BrZ7NA
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: YouTube (Logged in)
  • Version: 4.7.3
  • OS: Linux samsung/a15nseea/a15:15/AP3A.240905.015.A2/A155FXXU6CYE6:user/release-keys 15 - 35
Crash log

com.google.android.exoplayer2.ExoPlaybackException: Source error
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:644)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
	at android.os.Handler.dispatchMessage(Handler.java:103)
	at android.os.Looper.loopOnce(Looper.java:257)
	at android.os.Looper.loop(Looper.java:342)
	at android.os.HandlerThread.run(HandlerThread.java:85)
Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403
	at org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open(YoutubeHttpDataSource.java:521)
	at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:263)
	at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:52)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:796)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:609)
	at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
	at com.google.android.exoplayer2.source.chunk.InitializationChunk.load(InitializationChunk.java:99)
	at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412)
	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)


megumimakoto avatar Oct 25 '25 21:10 megumimakoto

That's not to do with the app. Google frequently blocks IP ranges unless you log in that it can't track to a single person or very small business. It's too tough for them to track the behavior to link to advertising.

I get that error if I'm on my work VPN but as soon as I disconnect it goes away. Same if I'm at a large hotel on wifi, I will have to either log in or use my home VPN connection.

greg-hellings avatar Oct 26 '25 00:10 greg-hellings

That's not to do with the app. Google frequently blocks IP ranges unless you log in that it can't track to a single person or very small business. It's too tough for them to track the behavior to link to advertising.

I get that error if I'm on my work VPN but as soon as I disconnect it goes away. Same if I'm at a large hotel on wifi, I will have to either log in or use my home VPN connection.

It's currently bad because watching while logged in doesn't work, and some of us also have that damn IP blocking, so you can't watch anything without logging in either.

Unfortunately, I regularly experience this problem: YouTube, for some insane reason, blocks IP addresses used by the ISP, and as a result, I lose the ability to watch anything because nothing works either with or without logging in, for two different reasons. :)

And PP is probably the only application that supports an account and works on Android 5 and above. Although PP 5.x supposedly requires A8 and up, unfortunately.

zeropi2021 avatar Oct 31 '25 06:10 zeropi2021

I'm not getting 403. I'm getting the "Could not get any stream" similar to InfinityLoop1308/PipePipe#981 ... ONLY if I'm logged in. With 4.7.3. I logout and everything works again. 🤷‍♂️

Edit: I guess they know. I just saw v4.7.4 (not yet on F-droid) temporarily disables logins "since video extraction for logged-in accounts is broken now".

LeDechaine avatar Nov 02 '25 21:11 LeDechaine

I'm not getting 403. I'm getting the "Could not get any stream" similar to #981 ... ONLY if I'm logged in. With 4.7.3. I logout and everything works again. 🤷‍♂️

Edit: I guess they know. I just saw v4.7.4 (not yet on F-droid) temporarily disables logins "since video extraction for logged-in accounts is broken now".

That's right.... Playback when logged in stopped working some time ago, regardless of the PP version. I also think they sent a message to 4.7.3 some time after the problem occurred.

zeropi2021 avatar Nov 03 '25 11:11 zeropi2021

We've found a stable way to handle YouTube's new encryption, so using a YouTube account is now supported again in 4.7.5 :)

InfinityLoop1308 avatar Nov 12 '25 06:11 InfinityLoop1308

Edit: for unknown reason, sometimes it still failing to parse videos. In case this happen, please restart the app and it should work again.

InfinityLoop1308 avatar Nov 12 '25 08:11 InfinityLoop1308

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=V7-ghrTqA44
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: YouTube (Logged in)
  • Version: 4.7.5
  • OS: Linux samsung/gta4xlwifixx/gta4xlwifi:13/TP1A.220624.014/P610XXU4FWJ1:user/release-keys 13 - 33
Crash log

com.google.android.exoplayer2.ExoPlaybackException: Source error
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:644)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loopOnce(Looper.java:226)
	at android.os.Looper.loop(Looper.java:313)
	at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403
	at org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open(YoutubeHttpDataSource.java:521)
	at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:263)
	at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:52)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:796)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:609)
	at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
	at com.google.android.exoplayer2.source.chunk.InitializationChunk.load(InitializationChunk.java:99)
	at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412)
	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)


It happened again.

VitoItalianGamer avatar Dec 12 '25 23:12 VitoItalianGamer