-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[com.google.android.youtube] Video playback fails with HTTP error code 403 #1870
Comments
I can confirm from my own testing that this issue is currently influenced by geography. |
For me it's not influenced by geography. I've tried different VPNs with different countries & none of them worked. |
It combines the account you use and the region you are in. Either, or both together can prevent playback. |
I'm located in the US using a US account and am being affected by this issue. |
They don't |
can we not crap all over the issue tracker with useless chatterplease? |
shutup thats not what this issue is about we don't want to hear about your problems in your country with whatever vpn you are using: its not related to this issue# |
as a work around try disabling Push nofications and cloud messaging it looks like this is how google is detecting the vanced/microgms. it ALSO seems like there is some kind of timeout on whatever restiction they are using when vanced/microg is detected as well switching accounts and using the other account for awhile seems to unrestrict the other account allowing video to play |
Seems there's been some sort of change on Google's end. For me, videos no longer stop buffering at exactly the 10-second mark, but they seem to stop buffering within the first minute or two, usually at either 0:39 or 1:39. |
Videos play on YouTube normally without the use of MicroG. Your theory unfortunately is not correct. |
Started affecting me and I live in cali, this sucks |
Same here. Youtube Revanced does not work in result :) |
got hit with this today from india. I already had issues with ambient mode not working for me and with this happening today. I changed ROMs unnecessarily. with frustration, In the end, i deleted my entire youtube service data. so far no issues, I found this thread after that. this is sad but even sad is the ambient mode isn't working for me, i can't access my second channel.....this is like a curse on my account |
thinking about it some more if vidoes play without microg installed this confirms they are doing some kind of check on if the client is using features they aren't entitled too / checking how the client is authenicated but I can't figure out why this issue is so inconsistent one day the account will just start working again with no changes / the next day it wont |
Was facing this issue since one month on my secondary device which had my secondary gmail account from india. On my primary device which has my primary mail is working fine. |
Started all of sudden getting this issue when I first started using it this morning. It worked all yesterday and last night. I'm in USA |
Please don't post new messages confirming that the problem exists. Some people receive notifications for each new message in this thread and this is not helpful. If you want to state you agree with something, please use reactions rather than making new comments. |
Was that problem fixed now? I can only watch revanced without microg to this day |
Changing the youtube handle seems to work but only temporarily as the problem arises again after a couple or a few days. |
@inotia00 probably fixed the issue? https://github.com/inotia00/revanced-patches/releases/tag/v2.164.30
|
Yes seems like it. it is pinned by @inotia00 in the office telegram group (https://t.me/revanced_extended_chat/176709). It is also will be coming in the revanced it seems according to the post. it would be helpful if we test it on our affected accounts and let the devs know. |
How do i add those patches to already installed revanced manager? |
Test and confirm it: https://github.com/inotia00/revanced-documentation/wiki/Method-3.-Using-official-ReVanced-Manager-(Android) |
Hell yeah it seemed to work for me now. |
I think it's more like a workaround from youtube app? We still don't know why using microg makes that signature different. |
Before trying this patch, I tried one of my accounts one more time, which was affected by the bug, I found that the bug no longer happens. So I don't know if that patch works or not. :/ |
He said that he patched the app and worked fine until yesterday, when the problem came back. Why isn't useful? We should not report if the patch is not working again? |
You should report it to the ReVanced team in ReVanced GitHub, not here, this issue is only to the microG team fix the issue directly into microG instead of modifying YouTube to make it work properly so if you can, please, don't start reporting if the issue is happening with your ReVanced with the I have notifications enabled here and I only want to see when developers/users will answer this issue with something helpful, not random people saying that their ReVanced is not working with such patch in a place that is not designed to ReVanced issues. |
unrelated to gms core but it bears repeating I am not sure this is a gmscore issue we are doing things to the client that are not offically supported and outside the scope of gmscore which is intended to provide a open-source alternativeto google services. not bypass there security checks which they are 100% within there rights to implament |
Check the section "Additional context" from OP:
MicroG is intended to spoof GMS, otherwise, apps depending on GMS won't work as intended by MicroG . |
yes because people are using microg to bypass restrictions on modded youtube clients for devices without root google was letting it slide now they are not. I would expect a DMCA from google anyday if people keep abusing microg to ahem privateer youtube premium fixing bugs caused by pirated apps(or patches that ENABLE it to be used for that) puts the entire project in jepordy so far thats all this affects. you should not be using microG with offical google apps as that is self defeating |
I don't know the reason for all the dislikes, but this comment solved the problem for me. However, it should be noted I tested the solution only playing few videos. "you should not be using microG with offical google apps" What I did was to modify which apps MicroG could communicate to: in MicroG settings I made unregistered "app.revanced.android.youtube" because it didn't have the Afn Red icon of YouTube Revanced Extended. I was thinking that even if it had "Revanced" in the name, it was actually some application that was linked with google services. I hope this helps. |
@inotia00 Error is already fixed! No one reports this error in the other ReVanced builds either. |
I was doing some testing with the stock YouTube app on a clean emulator, with latest dev MicroG. |
Can u tell me how do I fix it? |
Just load the current revanced app. It works for me for several weeks now |
The issue is related to PoToken. YouTube uses the PoTokenService with the action The byte arrays change everytime you log into an account on the app or change the account. PR #2129 is related. The issue is still up to date, even with the merged PR.
|
Adding to my previous comment. It seems like a Accordingly, the logs also show the following:
|
@oSumAtrIX Why close the issue as completed? The required changes are only in the ReVanced fork (which does indeed resolve the problem), but it's still very much an issue in microg/gmscore. The official YouTube app is unusable on MicroG, as it stalls after 30 seconds of video playback. |
@bladeSk: PoTokens is implemented in microG. What version are you using and did you enable device attestation? |
@mar-v-in I just finished installing the latest CalyxOS update and MicroG is at 0.3.0.233515-13 (872a72e). Device attestation is enabled and set to embedded (although YT is not shown in the list of apps using SafetyNet). YouTube videos still stop after 30 seconds. |
PoTokens was added in 0.3.1 so CalyxOS version might not have it yet. |
Just tested the official YouTube app on the latest CalyxOS (5.6.3), which comes with MicroG v0.3.1.240913 (da80579) and the issue persists. |
I have it installed, but I think it's silly to have two copies of MicroG running side by side, just to be able to watch YouTube. |
@bladeSk Do you have device attestation allowed in microG SafetyNet settings? |
@mar-v-in yes, it's set to embedded (local DroidGuard runtime). Oddly enough, clearing YT's cache and restarting the phone seems to have fixed the issue. 🎉 This is in line with what was required for installing ReVanced, so there was likely some old session data stuck somewhere. |
Affected app
Name: YouTube
Package id: com.google.android.youtube
Update
The issue is worked around by modifying YouTube to spoof the client according to TeamNewPipe/NewPipe#9038 (comment).
Update 2
GetPoIntegrityTokenRequest
returns noGetPoIntegrityTokenResponse
body #2253 likely causes this issue (Modifying the API request that leads to 403 streams by replacing the error message with valid PoIntegrityToken bytes successfully solves the issue)To Reproduce
Expected behavior
The video is expected to load.
System
Android 14, MicroG GmsCore (spoofed correctly)
Outdated/ Unrelated context
Additional context
Videos fail to play the requested video when POSTing to
/videoplayback
. This endpoint returns 403. The request itself did not yield anything useful when skimmed over. The payload is protobuf encoded and some data is likely hashed. No helpful information was inferred from the URL queries or request headers. I also imagine this issue's origin can come from a completely unrelated request (for example, for token exchange and use in/videoplayback
).This issue is ONLY reproducible on certain accounts in certain regions due to A/B testing, but expected to roll out globally. I have been able to reproduce this issue with multiple people's devices and ROMs (by using the same affected account), but many people reported this issue on their own accounts as well. On r/revancedapp some references can be found here: #1, #2.
An additional confirmation this issue is unrelated to the modifications on YouTube or MicroG is that when the modified app is altered back to use Google Services instead of MicroG, this issue does not occur. This was achieved by mounting the app with
mount
and root permissions on top of the regular unmodified app, allowing it to bypass the measurements from GMS to prevent unauthorized apps from using GMS such as the modified YouTube app. To sum up, this issue occurs on unmodified YouTube and upstream MicroG.To solve this issue, I am willing to contribute with accounts from my side on which this issue can be fully reproduced.
This issue can be reproduced as well on older versions of YouTube. It is unlikely the issue originates from the app and in combination with the other additional context it is assumed, the issue is related to MicroG.
Related exception stack traces from YouTube v17.49.37 when the issue occurs:
The text was updated successfully, but these errors were encountered: