-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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] HTTP error 403 around 1 minute mark #11191
Comments
Did you try different video, on different device or network? I got this problem too where it stuck buffering no matter what quality or video/audio playback, it persists in Firefox, yt-dlp (i use Seal) and many other 3rd party apps, I can only watch said content on YouTube mobile or Chromium-based browsers |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as duplicate.
This comment was marked as duplicate.
The strangest thing in my case is that, at first, I didn't have this problem, but from about two~three days ago until now it appears from time to time. But I notice that it's more frequent in case I use pip mode or when I put the video in the background. OS: Android 12, One UI 4.1 |
@tag27, Maybe YouTube is reconfiguring its servers? After the 22nd format was removed yt-dlp/yt-dlp#10206 NewPipe worked fine. There are no problems at the moment. Perhaps you have a "forbidden/403" format in pip at the moment? Try changing the quality |
This looks to be be part of it, since I've also run into something similar, but only encounter the issue with background play (haven't tested with picture-in-picture). Regular video playback works fine. Quick guess and a poke around the error NewPipe brings up, along with it working fine if the video is loaded through other formats, would suggest that it's an issue with it being able to load the DASH segments properly for the background/PIP format. It can grab the first segment fine, but nothing else past that, hence playback being relatively early on in a video. |
This comment was marked as duplicate.
This comment was marked as duplicate.
for me when error occurs it's always at 00:59 time stamp. |
Can you test with a different DNS? I had problems with some providers, but Quad9 works fine. After changing the DNS, don't forget to disconnect/connect and close/open NewPipe.
|
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as resolved.
This comment was marked as resolved.
Confirming that:
|
Clearing the metadata in the settings menu fixed the problem for me. I didn't change the DNS or anything this time. |
Many users are reporting a 403 at around one minute of playback, these issues are being marked as duplicates of this issue. However this issue has significant differences in both the steps to reproduce and traceback line numbers. It's possible that these are seperate issues. |
I believe both it's the same problem, because possibly the OP of this issue didn't notice that the video paused before completing 1 minute. I hadn't realized it myself when I commented earlier. |
Until we know for sure that they are different issues, both 403 errors are being treated as the same. |
I've found that if you do trigger the error, coming back to the video later (either from playing another file, or by restarting the app), and starting from that point doesn't run into that issue again, despite it being the same video. YouTube Music uploads (the ones that are just album art rather than an actual video) don't seem to trigger it either, maybe they use a different format that doesn't have the same problems? |
In my experience, both normal and YouTube Music videos are affected; I get the same exact behavior on either kind. |
I have an idea for a workaround: Make a PR that causes NewPipe to automatically wipe the metadata cache and begin replaying the video from wherever it left off at every time this error occurs since wiping the metadata cache (in Settings -> History and Cache -> Wipe Cached Metadata) seems to make this issue go away temporarily. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
I said this in one of the other linked threads: Google seems to be A/B testing a number of things recently. SponsorBlock noted that one of those things is server-side ad injection which is changing the length of the videos. |
This comment was marked as off-topic.
This comment was marked as off-topic.
So this may or may not be helpful. So it could be as some people have mentioned in the thread that Google is experimenting with things server side to block requests from adblocking clients |
The only thing I can get working is other apps that utilize the invidious instances, Everything else just fails |
Please also see About YouTube playback errors - YouTube changed some things to get working streams
Checklist
Affected version
0.27.0
Steps to reproduce the bug
When I click play, the video loads and the message "Network error" appears and nothing happens
Expected behavior
No response
Actual behavior
No response
Screenshots/Screen recordings
No response
Logs
Exception
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:107)
at android.os.Looper.loop(Looper.java:194)
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:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Affected Android/Custom ROM version
No response
Affected device model
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: