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 for playback or download #11803

Open
6 tasks done
LostFl0ptrop1can opened this issue Dec 19, 2024 · 22 comments
Open
6 tasks done

[YouTube] HTTP error 403 for playback or download #11803

LostFl0ptrop1can opened this issue Dec 19, 2024 · 22 comments
Labels
ASAP Issue needs to be fixed as soon as possible bug Issue is related to a bug downloader Issue is related to the downloader player Issues related to any player (main, popup and background) youtube Service, https://www.youtube.com/

Comments

@LostFl0ptrop1can
Copy link

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

Steps to reproduce the bug

  1. Play any video that has music tagged by YT
  2. Play in Background
  3. Wait

Expected behavior

It should play normally till the end

Actual behavior

It stopped midway and error 403

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=9ZbVCs3EJUA
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: YouTube
  • Version: 0.27.4
  • OS: Linux Android 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:236)
	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

Xiaomi Redmi 9 4/64 MTK Helio G80

Additional information

No response

@LostFl0ptrop1can LostFl0ptrop1can added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Dec 19, 2024
@GermanG
Copy link

GermanG commented Dec 20, 2024

Almost the same case but it has a 403 after close to a minute (0:58 0:59)
It happened yesterday for the first time and then worked again, today is breaking again, I'm trying to figure out and reproduce it more consistently.

@klaurence
Copy link

This seems like a resurgence of #11191.

@LJNeon
Copy link

LJNeon commented Dec 21, 2024

I'm struggling with this issue as well. Currently EVERY video will fail to load around the one minute mark, except when I play in the background. The issue disappears if I disable my VPN, but obviously I would rather not do so.

@AudricV AudricV changed the title Error 403 [YouTube] HTTP error 403 for playback or download Dec 22, 2024
@AudricV AudricV added ASAP Issue needs to be fixed as soon as possible youtube Service, https://www.youtube.com/ downloader Issue is related to the downloader 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 Dec 22, 2024
@Figim
Copy link

Figim commented Dec 22, 2024

LibreTube plays videos directly from YouTube thanks to its local streaming extractor. Without piped proxy

However, this issue only occurs on DASH for LibreTube.
Mostly after 19:42. Nights

Maybe Solution: ReVanced said iOS spoofing didn't work well. Now Android TV is doing the spoofing. They had a similar problem too

Playback stopped after 1 minute.

Problem Link: ReVanced/revanced-patches#4176

@ShareASmile ShareASmile pinned this issue Dec 22, 2024
@funsafe-ptr
Copy link

@LJNeon Try changing the VPN country, it worked for me.

@k4ploc

This comment was marked as duplicate.

@Figim
Copy link

Figim commented Dec 22, 2024

yt-dlp/yt-dlp#11868

@Egnosa
Copy link

Egnosa commented Dec 23, 2024

This is happening to me but I am not using VPN and it doesn't even load the first minute.

Some videos load perfectly with no issues, others not at all.

@jimbattun
Copy link

I am experiencing an issue with video playback on my home Wi-Fi. On mobile data, everything works well. I noticed that the problem only occurs with certain videos:

Videos uploaded more than a week ago play without issues.
Newer videos (less than a week old) and very old ones (over three years old) do not play.
I tested different alternatives, but only the original YouTube app works properly.

Let me know if there is anything I can do to help troubleshoot this issue.

@eternal-sorrow
Copy link

For me videos straight up don't start playing at all. No 1 minute mark, it just doesn't play, gives this error instead.

@eternal-sorrow
Copy link

SkyTube works with the same video on the same device without problem.

@Figim
Copy link

Figim commented Dec 23, 2024

SkyTube works with the same video on the same device without problem.

This is sometimes auto corrected. It's not exactly the same time, in the same position.

@LJNeon
Copy link

LJNeon commented Dec 23, 2024

I tried videos that don't work on newpipe in the browser and they play perfectly fine. So at least on my end this does seem like an issue with newpipe and not just youtube blocking VPNs after a minute.

@NoahJelen
Copy link

This issue happens to me when I play a playlist after a few songs.

@NoahJelen
Copy link

yt-dlp/yt-dlp#11890
This may provide clues for a fix to this issue.

@Figim
Copy link

Figim commented Dec 24, 2024

yt-dlp/yt-dlp#11890 This may provide clues for a fix to this issue.

There are two issues. One is still not fixed.

This is not a solution. Apparently "potoken" should actually be given in any position if needed.

This: YouTube is experimenting with some sort of new aggressive IP-based block on videoplayback urls - perhaps to replace or complement the existing "sign in to confirm you are not a bot" error on the player endpoint. This produces an HTTP 403 error on videoplayback urls, regardless of client and protocol (HTTPS, DASH, HLS, UMP, SABR, ONESIE).

@welltoncosta
Copy link

Very aggressive. Sad, google, sad.

@Figim
Copy link

Figim commented Dec 25, 2024

Very aggressive. Sad, google, sad.

Be patient and wait for the solution.

@homoludens
Copy link

Very aggressive. Sad, google, sad.

Might be off topic but I can not resist: Sooner they pull the plug, sooner we will leave yt. Since NP is not working I tried using their app and it is unusable, not just because of the adds, so I don't use it.

@Figim
Copy link

Figim commented Dec 25, 2024

Very aggressive. Sad, google, sad.

Might be off topic but I can not resist: Sooner they pull the plug, sooner we will leave yt. Since NP is not working I tried using their app and it is unusable, not just because of the adds, so I don't use it.

For now, watch videos by turning on the HLS option on LibreTube. Let's wait for the problem to be resolved for DASH. The Http 403 bug mentioned above and the same type other http 403 bug fixed by ytdlp do not occur in HLS

YT requires potokens for formats in the middle and end of the video, and HLS is not affected yet.

yt-dlp/yt-dlp#11868 (comment)

@IgorArnaut

This comment was marked as duplicate.

@Figim
Copy link

Figim commented Dec 25, 2024

The best solution would be to crack Potoken. Because it is the cause of http 403 and other playback problems.

It simply generated an attestation token. Also with hardware attestation this will become impossible unless you got hw keys

As a solution: ReVanced/revanced-patches#2907

MicroG-enabled account support

Spoofing options should be increased: iOS tv, Android vr (auth), Android vr, Android tv. If one fails, switch to another.

ReVanced/revanced-patches#4180

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 downloader Issue is related to the downloader player Issues related to any player (main, popup and background) youtube Service, https://www.youtube.com/
Projects
None yet
Development

No branches or pull requests