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

[FIXED IN 0.27.2][YouTube] HTTP error 403 when starting videos #11255

Closed
6 tasks done
Spok1 opened this issue Jul 9, 2024 · 16 comments
Closed
6 tasks done

[FIXED IN 0.27.2][YouTube] HTTP error 403 when starting videos #11255

Spok1 opened this issue Jul 9, 2024 · 16 comments
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

@Spok1
Copy link

Spok1 commented Jul 9, 2024

Please also see About YouTube playback errors - YouTube changed some things to get working streams


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.0

Steps to reproduce the bug

Open the video and try to play it.

Expected behavior

For the videos to play.

Actual behavior

The video doesn't want to play. An error code appears in the notification.

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=WoLa-J8YpxU
  • Content Country: RU
  • Content Language: ru-RU
  • App Language: ru_RU
  • Service: YouTube
  • Version: 0.27.0
  • OS: Linux Android 7.0 - 24
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:98)
	at android.os.Looper.loop(Looper.java:159)
	at android.os.HandlerThread.run(HandlerThread.java:61)
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.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:1133)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
	at java.lang.Thread.run(Thread.java:761)


Affected Android/Custom ROM version

Android 7

Affected device model

Asus z500m

Additional information

No response

@Spok1 Spok1 added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Jul 9, 2024
@MrNessuno

This comment was marked as duplicate.

@Wicycool

This comment was marked as duplicate.

@limesqueezy

This comment was marked as duplicate.

@bit-garden
Copy link

bit-garden commented Jul 9, 2024

It should be mentioned that yt-dlp yesterday started throwing 403 errors.

yt-dlp/yt-dlp#10397

This sounds like YouTube has made changes that are breaking 3rd party access.

@ACR-Jeff
Copy link

ACR-Jeff commented Jul 9, 2024

Youtube is messing with 3rd party apps again. It's happening on other apps as well.

@joshuabengal
Copy link

Same here. No videos will play, no channel pages will load.

Worth noting that on my PC, PotPlayer can still play videos just fine. Last time this happened (NewPipe failed to play a video but PotPlayer plays it), it was a result of YouTube doing A/B testing targeting different platforms.

@Player005
Copy link

Same issue here. First started just occasionally occurring on some videos, now no videos play at all.
Changing DNS to cloudflare or quad9 doesn't change anything, same goes with deleting metadata cache.

Exception
  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=hgdSJdeGF_0
  • Content Country: DE
  • Content Language: de-DE
  • App Language: de_DE
  • Service: YouTube
  • Version: 0.27.0
  • OS: Linux Android 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:201)
	at android.os.Looper.loop(Looper.java:288)
	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.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:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)

@gsture
Copy link

gsture commented Jul 9, 2024

Same here. No videos will play, no channel pages will load.

Worth noting that on my PC, PotPlayer can still play videos just fine. Last time this happened (NewPipe failed to play a video but PotPlayer plays it), it was a result of YouTube doing A/B testing targeting different platforms.

Grayjay android app also still works. That's what I am using in the meantime.

@ACR-Jeff
Copy link

ACR-Jeff commented Jul 9, 2024

The only thing I can get working is other apps that utilize the invidious instances, Everything else just fails

@AudricV AudricV changed the title Not a single video wants to be played. [YouTube] HTTP error 403 when starting videos Jul 10, 2024
@AudricV AudricV added ASAP Issue needs to be fixed as soon as possible youtube Service, https://www.youtube.com/ requires extractor change This issue requires a change to the extractor and removed needs triage Issue is not yet ready for PR authors to take up labels Jul 10, 2024
@AudricV AudricV pinned this issue Jul 10, 2024
@XiangRongLin
Copy link
Collaborator

XiangRongLin commented Jul 10, 2024

The guys over at youtube-dl have an approach. Details are still a bit sparse, but youtube changed the javascript code snippet that we parse out of the whole file in order to bypass the throttling. I don't have a working setup anymore for newpipe + extractor anymore so I will need some time if no one else has time
ytdl-org/youtube-dl#32842 (comment)
ytdl-org/youtube-dl#32842 (comment)

The regexes here probably need to be adjusted and the String.prototype.split.call(a, "") needs to be replaced with a.split("") since rhino does not support that according to the user they use a different JS runtime

@XiangRongLin
Copy link
Collaborator

Fix is in the works. for now you can use the debug APK from here TeamNewPipe/NewPipeExtractor#1191

@Stypox
Copy link
Member

Stypox commented Jul 11, 2024

Fixed by TeamNewPipe/NewPipeExtractor#1191. A hotfix release is in the making.

@Stypox Stypox closed this as completed Jul 11, 2024
@ShareASmile ShareASmile changed the title [YouTube] HTTP error 403 when starting videos [FIXED IN 0.27.1][YouTube] HTTP error 403 when starting videos Jul 12, 2024
@http403

This comment was marked as off-topic.

@stenterstal

This comment was marked as resolved.

@TeamNewPipe TeamNewPipe locked as resolved and limited conversation to collaborators Jul 12, 2024
@opusforlife2
Copy link
Collaborator

So, Youtube changed something again and this issue resurfaced. It's already fixed in the code, so just wait a little and it'll be out in a new version.

@opusforlife2 opusforlife2 reopened this Jul 24, 2024
@opusforlife2 opusforlife2 changed the title [FIXED IN 0.27.1][YouTube] HTTP error 403 when starting videos [FIXED IN CODE][YouTube] HTTP error 403 when starting videos Jul 24, 2024
@Stypox
Copy link
Member

Stypox commented Jul 26, 2024

This is fixed again by 0.27.2

@Stypox Stypox closed this as completed Jul 26, 2024
@AudricV AudricV changed the title [FIXED IN CODE][YouTube] HTTP error 403 when starting videos [FIXED IN 0.27.2][YouTube] HTTP error 403 when starting videos Jul 26, 2024
@opusforlife2 opusforlife2 unpinned this issue Aug 10, 2024
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
Development

No branches or pull requests