YouTube.js icon indicating copy to clipboard operation
YouTube.js copied to clipboard

13.3.0 "[StreamProtectionStatus]: Attestation required" when running example

Open berkon opened this issue 8 months ago • 2 comments

Steps to reproduce

I'm trying to get the browser example running. The dependencies in package.json seem to be outdated. After updating to these versions:

"bgutils-js": "^3.2.0",
"googlevideo": "^3.0.0",
"shaka-player": "4.11.7",
"youtubei.js": "^13.3.0"

I was able to get it running (sometimes). In most cases I'm getting this error on the cmd line:

[StreamProtectionStatus]: Attestation required

In very rare cases the player starts and can be operated normally. In some other cases the player starts for a few seconds and then stops. During the time it is playing, I'm seeing:

[StreamProtectionStatus]: Attestation pending

And then after those few seconds:

[StreamProtectionStatus]: Attestation required

Failure Logs

[StreamProtectionStatus]: Attestation pending
[StreamProtectionStatus]: Attestation required

Expected behavior

The player in the example should operate normally.

Current behavior

Player not working in most cases (see details in "Steps to reproduce").

Version

Default

Anything else?

No response

Checklist

  • [x] I am running the latest version.
  • [x] I checked the documentation and found no answer.
  • [x] I have searched the existing issues and made sure this is not a duplicate.
  • [x] I have provided sufficient information.

berkon avatar Apr 07 '25 08:04 berkon

for me i had to change

"youtubei.js": "^12.2.0"

to

"youtubei.js": "^13.3.0"

FlyingThaCat avatar Apr 12 '25 08:04 FlyingThaCat

@LuanRT @absidue it seems already deleted, sorry for pinging both of you 🙏

FlyingThaCat avatar Apr 13 '25 04:04 FlyingThaCat