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] HTTP error 403 around 1 minute mark #11191

Open
6 tasks done
opranda opened this issue Jun 19, 2024 · 29 comments
Open
6 tasks done

[YouTube] HTTP error 403 around 1 minute mark #11191

opranda opened this issue Jun 19, 2024 · 29 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

@opranda
Copy link

opranda commented Jun 19, 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

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

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=GnUCGS0KRqM
  • Content Country: RU
  • Content Language: ru-RU
  • App Language: ru_RU
  • Service: YouTube
  • Version: 0.27.0
  • OS: Linux Android 5.1 - 22
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

@opranda opranda added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Jun 19, 2024
@MDP43140
Copy link
Contributor

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

@opusforlife2 opusforlife2 added the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Jun 21, 2024
@Baltazar500

This comment was marked as duplicate.

@MingMing0000

This comment was marked as duplicate.

@iiD4x

This comment was marked as duplicate.

@RadenAmzar

This comment was marked as spam.

@Baltazar500

This comment was marked as resolved.

@nash268

This comment was marked as duplicate.

@tag27
Copy link

tag27 commented Jun 29, 2024

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
Device: Samsung Galaxy A11 (SM-A115M/DS)

@Baltazar500
Copy link

@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

@techno156
Copy link

techno156 commented Jun 30, 2024

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.

@A-Nicoladie

This comment was marked as duplicate.

@nash268
Copy link

nash268 commented Jul 2, 2024

for me when error occurs it's always at 00:59 time stamp.

@juanfra684
Copy link

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.

IPv4
9.9.9.9
149.112.112.112

IPv6
2620:fe::fe
2620:fe::9

DoH
https://dns.quad9.net/dns-query

DoT
dns.quad9.net

@rjdg14

This comment was marked as duplicate.

@NoahJelen

This comment was marked as resolved.

@krushia
Copy link

krushia commented Jul 5, 2024

Confirming that:

  1. The first part of a video will play before the error occurs
  2. After the error, the triggering video will no longer play at all
  3. After the first occurance, there appears to be an increased probability of triggering the error with other videos (but they may still play okay)
  4. Restarting NewPipe usually fixes it
  5. It happens sporadically

@juanfra684
Copy link

Clearing the metadata in the settings menu fixed the problem for me. I didn't change the DNS or anything this time.

@1xFF
Copy link

1xFF commented Jul 6, 2024

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.

@tag27
Copy link

tag27 commented Jul 6, 2024

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.

@opusforlife2
Copy link
Collaborator

Until we know for sure that they are different issues, both 403 errors are being treated as the same.

@techno156
Copy link

Confirming that:

1. The first part of a video will play before the error occurs

2. After the error, the triggering video will no longer play at all

3. After the first occurance, there appears to be an increased probability of triggering the error with other videos (but they may still play okay)

4. Restarting NewPipe usually fixes it

5. It happens sporadically

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?

@acarasimon96
Copy link

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.

@NoahJelen
Copy link

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.

@uacnix

This comment was marked as off-topic.

This comment was marked as resolved.

@github-actions github-actions bot closed this as completed Jul 9, 2024
@TechnologyClassroom
Copy link

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.

@ShareASmile ShareASmile mentioned this issue Jul 9, 2024
6 tasks
@Stypox Stypox reopened this Jul 9, 2024
@ShareASmile ShareASmile removed the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Jul 9, 2024
@rjdg14

This comment was marked as off-topic.

@alliethebanana
Copy link

So this may or may not be helpful.
Around the time I started being unable to play videos through Newpipe, I went to my smart TV instead to try to stream videos through SmartTube beta, and lo and behold, now there is a 403 error code whenever it tries buffering the videos.

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

@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 Network error [YouTube] HTTP error 403 when playing videos around 1 minute of playback 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
@opusforlife2 opusforlife2 pinned this issue Jul 10, 2024
@opusforlife2 opusforlife2 changed the title [YouTube] HTTP error 403 when playing videos around 1 minute of playback [YouTube] HTTP error 403 around 1 minute mark Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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