Skip to content

[Bug] 400 Bad Request when playing specific youtube video #1178

@ns920

Description

@ns920

Checklist (Your issue will be automatically closed if you delete this part)

  • [√] I make sure that there are no existing issues - open or closed - which I could contribute my information to.
  • [√] I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed.
  • [√] I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • [√] I have attached the error report in the issue.

Describe the bug
When I playing a specific youtube video, it will not get error instant, but get this error after about 30s.

Frequency
Not every time. When I rebot application it occur again but no problem with 3rd try.

Steps to reproduce the bug
Open the live record video and wait 30s

Device (e.g. Pixel 9 Pro)
Oppo Find X6 PRO

Error report
{"user_action":"play stream","request":"Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=_wH_piLHfEU","content_language":"ja-JP","content_country":"JP","app_language":"ja_JP","service":"YouTube (Logged in)","package":"InfinityLoop1309.NewPipeEnhanced","version":"4.5.0","os":"Linux Android 15 - 35","time":"2025-06-26 10:01","exceptions":["com.google.android.exoplayer2.ExoPlaybackException: Source error\n\tat com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:644)\n\tat com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)\n\tat android.os.Handler.dispatchMessage(Handler.java:103)\n\tat android.os.Looper.loopOnce(Looper.java:282)\n\tat android.os.Looper.loop(Looper.java:387)\n\tat android.os.HandlerThread.run(HandlerThread.java:85)\nCaused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 400\n\tat org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open(YoutubeHttpDataSource.java:522)\n\tat com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:263)\n\tat com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:52)\n\tat com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:796)\n\tat com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:609)\n\tat com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)\n\tat com.google.android.exoplayer2.source.chunk.ContainerMediaChunk.load(ContainerMediaChunk.java:124)\n\tat com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)\n\tat java.lang.Thread.run(Thread.java:1012)\n"],"user_comment":""}

Additional context

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions