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

[YouTube] 403 HTTP errors while playing/downloading videos (workaround broken) #10174

Closed
6 tasks done
phanirithvij opened this issue Jun 18, 2023 · 8 comments · Fixed by TeamNewPipe/NewPipeExtractor#1084
Closed
6 tasks done
Labels
ASAP Issue needs to be fixed as soon as possible bug Issue is related to a bug requires extractor change This issue requires a change to the extractor youtube Service, https://www.youtube.com/

Comments

@phanirithvij
Copy link

Checklist

  • I am able to reproduce the bug with the latest version.
  • 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.25.1 fdroid

Steps to reproduce the bug

Pasted the error log down below. When watching that video the app crashed.
It keeps failing constantly at 1:19 timestamp. Tried playing it 3 times got the same error.

Expected behavior

No response

Actual behavior

No response

Screenshots/Screen recordings

No response

Logs

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=17vabTy82Iw
  • Content Country: GB
  • Content Language: en-GB
  • App Language: en_GB
  • Service: YouTube
  • Version: 0.25.1
  • OS: Linux realme/RMX1971/RMX1971:11/RKQ1.201217.002/1637545731209:user/release-keys 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:263)
	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:422)
	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.ContainerMediaChunk.load(ContainerMediaChunk.java:124)
	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)


Affected Android/Custom ROM version

No response

Affected device model

No response

Additional information

No response

@phanirithvij phanirithvij added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Jun 18, 2023
@AudricV AudricV added youtube Service, https://www.youtube.com/ requires extractor change This issue requires a change to the extractor player Issues related to any player (main, popup and background) and removed needs triage Issue is not yet ready for PR authors to take up labels Jun 18, 2023
@AudricV AudricV changed the title Crashed in the middle of a video [YouTube] 403 HTTP errors while playing videos (workaround broken) Jun 18, 2023
@opusforlife2
Copy link
Collaborator

Tried playing it 3 times got the same error.

Did you try completely closing and restarting the app? Try after swiping it away from Recents.

@phanirithvij
Copy link
Author

phanirithvij commented Jun 18, 2023

I did change the video, and the new video played and then switched back and this video did not play, but I didn't restart the app.
After seeing your comment I just did, and the video plays. Thank you.

@AudricV
Copy link
Member

AudricV commented Jun 18, 2023

Do not close the issue, it is an A/B test or a rollout and does not affect only NewPipe, but also reVanced which uses the same workaround, which is the reason why you have been not able to reproduce it again.

It will affect more and more people (edit: I got affected a few minutes ago): that's a continuation of #9038, which happens now not at the start of playback but later, probably to make us detect and reproduce the issue harder.

@AudricV AudricV reopened this Jun 18, 2023
@Luaned

This comment was marked as duplicate.

@simonmikkelsen
Copy link

I started getting this a lot these days. If I restart the app it will continue playing the video, but not if I just play another video then gets back.

@comicsansgreenki

This comment was marked as resolved.

@AudricV AudricV added ASAP Issue needs to be fixed as soon as possible and removed player Issues related to any player (main, popup and background) labels Jul 29, 2023
@AudricV AudricV changed the title [YouTube] 403 HTTP errors while playing videos (workaround broken) [YouTube] 403 HTTP errors while playing/downloading videos (workaround broken) Jul 29, 2023
@AudricV AudricV pinned this issue Jul 29, 2023
@marek22k

This comment was marked as duplicate.

@christian179717

This comment was marked as duplicate.

@TeamNewPipe TeamNewPipe locked and limited conversation to collaborators Jul 30, 2023
@opusforlife2 opusforlife2 unpinned this issue Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ASAP Issue needs to be fixed as soon as possible bug Issue is related to a bug requires extractor change This issue requires a change to the extractor youtube Service, https://www.youtube.com/
Projects
None yet
8 participants