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

[Bug]: Unexcepted token [1:71], video plays fine in browser #6328

Closed
5 of 6 tasks
windowsfan6 opened this issue Dec 9, 2024 · 47 comments · Fixed by #6343
Closed
5 of 6 tasks

[Bug]: Unexcepted token [1:71], video plays fine in browser #6328

windowsfan6 opened this issue Dec 9, 2024 · 47 comments · Fixed by #6343

Comments

@windowsfan6
Copy link

Guidelines

  • I have encountered this bug in the latest release of FreeTube.
  • I have encountered this bug in the official downloads of FreeTube.
  • I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
  • I have searched the documentation for information that matches the description of the bug I want to file, without success.
  • This issue contains only one bug.

Describe the bug

I was going to download a video, since I needed it for a project. However, it didn't load, both with Local and Invidious API's, which it means that it's YT screwing things again. The video is https://youtu.be/rek5_c1BXQI.

All other videos play just fine, and this video plays fine in a browser.

Expected Behavior

Video should play as usual.

Issue Labels

accessibility issue, API issue, content not loading, feature stopped working

FreeTube Version

v0.22.0

Operating System Version

Windows 10, version 21H2

Installation Method

.exe

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

bundle-1733766668291.log

Nightly Build

@Bennguyen2

This comment was marked as duplicate.

@rjdg14

This comment was marked as duplicate.

@absidue
Copy link
Member

absidue commented Dec 9, 2024

Please don't leave "me too" comments, we are aware of the problem, spamming the thread doesn't help anyone. Just upvote the issue!

@rjdg14
Copy link

rjdg14 commented Dec 9, 2024

Something I feel I should be mentioned would be that be that the problem doesn't seem to be affecting videos that I've watched in the past few hours, and they all stream fine when I attempt to watch them again, but it seems to be affecting any new video users attempt to stream. This suggests that it may be cookie/token related.

@absidue
Copy link
Member

absidue commented Dec 9, 2024

@windowsfan6 Thank you for providing the logs, according to that the Invidious error is just that the Invidious instance you are using is temporarily unavailable, as for the local API error that is caused by a YouTube deciphering code change. They did a few of those recently the previous ones just failed silently, so you would only notice them when you specifically used the legacy formats but it looks like they've done another change, this time causing an error earlier on in the process.

@windowsfan6

This comment was marked as off-topic.

@absidue

This comment was marked as off-topic.

@SciverSatoh
Copy link

This problem appears to be affecting music videos specifically on my end. I don't know if that's useful or not but I hope it helps.

@rjdg14
Copy link

rjdg14 commented Dec 9, 2024

This problem appears to be affecting music videos specifically on my end. I don't know if that's useful or not but I hope it helps.

I can confirm that it seems to be impacting most videos that I suspect ContentID has flagged for containing music, yet doesn't appear to be affecting most other videos.

@DestructionDyme
Copy link

I've tested around 100 of my music videos and until now every single video of channels who promote various artists aren't working while around 90 % of the music videos from the channels of the artists work. I don't have a clue why 10 % are affected tho cause not all of the affected ones were remixes of popular songs or had a lot of views.

@scoop96
Copy link

scoop96 commented Dec 9, 2024

im adding the other message that the app gave me (just because nobody published it)

SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

these music videos work
https://youtu.be/nGoKkGZ0Tyc
https://youtu.be/8PMYXBNsDfE

I hope to help with this comment :(
Love the work of this comunity <3

@kuligs2

This comment has been minimized.

@efb4f5ff-1298-471a-8973-3d47447115dc

UPDATE: Upstream fix is being tested as we speak

@liammcsh2008

This comment has been minimized.

@efb4f5ff-1298-471a-8973-3d47447115dc

UPDATE: Upstream fix has been released and we are currently testing it on our end as we speak

@efb4f5ff-1298-471a-8973-3d47447115dc

UPDATE: We have tested the fix on our end and we will put out a hotfix release ASAP.

@ArthurKun21
Copy link

78f75d3

Agree with @rjdg14 it looks like some music videos is still getting it

renderer.js:2 eB: Unexpected token (1:71)
    at zV.evaluate (app://bundle/renderer.js:2:1561535)
    at Object.eval (app://bundle/renderer.js:2:1673389)
    at _$.decipher (app://bundle/renderer.js:2:1573009)
    at tN.decipher (app://bundle/renderer.js:2:1354987)
    at app://bundle/renderer.js:2:1790091
    at zK (app://bundle/renderer.js:2:1790103)
    at async r.getVideoInformationLocal (app://bundle/renderer.js:2:2243809)
getVideoInformationLocal @ renderer.js:2
await in getVideoInformationLocal
onMountedDependOnLocalStateLoading @ renderer.js:2
mounted @ renderer.js:2
Ht @ renderer.js:2
wi @ renderer.js:2
insert @ renderer.js:2
Ht @ renderer.js:2
i @ renderer.js:2
T @ renderer.js:2
(anonymous) @ renderer.js:2
e._update @ renderer.js:2
n @ renderer.js:2
e.get @ renderer.js:2
e.run @ renderer.js:2
Li @ renderer.js:2
(anonymous) @ renderer.js:2
Xt @ renderer.js:2
Promise.then
Wt @ renderer.js:2
ti @ renderer.js:2
Mi @ renderer.js:2
e.update @ renderer.js:2
e.$forceUpdate @ renderer.js:2
(anonymous) @ renderer.js:2
l @ renderer.js:2
Ht @ renderer.js:2
i @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
qs @ renderer.js:2
(anonymous) @ renderer.js:2
requestAnimationFrame
(anonymous) @ renderer.js:2
requestAnimationFrame
zs @ renderer.js:2
C @ renderer.js:2
Zs @ renderer.js:2
remove @ renderer.js:2
C @ renderer.js:2
_ @ renderer.js:2
(anonymous) @ renderer.js:2
e._update @ renderer.js:2
n @ renderer.js:2
e.get @ renderer.js:2
e.run @ renderer.js:2
Li @ renderer.js:2
(anonymous) @ renderer.js:2
Xt @ renderer.js:2
Promise.then
Wt @ renderer.js:2
ti @ renderer.js:2
Mi @ renderer.js:2
e.update @ renderer.js:2
e.notify @ renderer.js:2
set @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
Hl.updateRoute @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
n @ renderer.js:2
n @ renderer.js:2
Bl @ renderer.js:2
(anonymous) @ renderer.js:2
n @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
g @ renderer.js:2
n @ renderer.js:2
n @ renderer.js:2
n @ renderer.js:2
Bl @ renderer.js:2
Hl.confirmTransition @ renderer.js:2
Hl.transitionTo @ renderer.js:2
t.push @ renderer.js:2
(anonymous) @ renderer.js:2
tc.push @ renderer.js:2
rQ.push @ renderer.js:2
y @ renderer.js:2
Ht @ renderer.js:2
i @ renderer.js:2
a._wrapper @ renderer.js:2
renderer.js:2 WARNING: Too many active WebGL contexts. Oldest context will be lost.
(anonymous) @ renderer.js:2
NC @ renderer.js:2
n.configure @ renderer.js:2
$C @ renderer.js:2
bk @ renderer.js:2
(anonymous) @ renderer.js:2
Ht @ renderer.js:2
wi @ renderer.js:2
insert @ renderer.js:2
T @ renderer.js:2
(anonymous) @ renderer.js:2
e._update @ renderer.js:2
n @ renderer.js:2
e.get @ renderer.js:2
e.run @ renderer.js:2
Li @ renderer.js:2
(anonymous) @ renderer.js:2
Xt @ renderer.js:2
Promise.then
Wt @ renderer.js:2
ti @ renderer.js:2
Mi @ renderer.js:2
e.update @ renderer.js:2
e.notify @ renderer.js:2
set @ renderer.js:2
setAppTitle @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
fc._withCommit @ renderer.js:2
fc.commit @ renderer.js:2
commit @ renderer.js:2
setAppTitle @ renderer.js:2
(anonymous) @ renderer.js:2
fc.dispatch @ renderer.js:2
dispatch @ renderer.js:2
Ic.forEach.i.<computed> @ renderer.js:2
updateTitle @ renderer.js:2
(anonymous) @ renderer.js:2
Promise.then
getVideoInformationInvidious @ renderer.js:2
getVideoInformationLocal @ renderer.js:2
await in getVideoInformationLocal
onMountedDependOnLocalStateLoading @ renderer.js:2
mounted @ renderer.js:2
Ht @ renderer.js:2
wi @ renderer.js:2
insert @ renderer.js:2
Ht @ renderer.js:2
i @ renderer.js:2
T @ renderer.js:2
(anonymous) @ renderer.js:2
e._update @ renderer.js:2
n @ renderer.js:2
e.get @ renderer.js:2
e.run @ renderer.js:2
Li @ renderer.js:2
(anonymous) @ renderer.js:2
Xt @ renderer.js:2
Promise.then
Wt @ renderer.js:2
ti @ renderer.js:2
Mi @ renderer.js:2
e.update @ renderer.js:2
e.$forceUpdate @ renderer.js:2
(anonymous) @ renderer.js:2
l @ renderer.js:2
Ht @ renderer.js:2
i @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
qs @ renderer.js:2
(anonymous) @ renderer.js:2
requestAnimationFrame
(anonymous) @ renderer.js:2
requestAnimationFrame
zs @ renderer.js:2
C @ renderer.js:2
Zs @ renderer.js:2
remove @ renderer.js:2
C @ renderer.js:2
_ @ renderer.js:2
(anonymous) @ renderer.js:2
e._update @ renderer.js:2
n @ renderer.js:2
e.get @ renderer.js:2
e.run @ renderer.js:2
Li @ renderer.js:2
(anonymous) @ renderer.js:2
Xt @ renderer.js:2
Promise.then
Wt @ renderer.js:2
ti @ renderer.js:2
Mi @ renderer.js:2
e.update @ renderer.js:2
e.notify @ renderer.js:2
set @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
Hl.updateRoute @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
n @ renderer.js:2
n @ renderer.js:2
Bl @ renderer.js:2
(anonymous) @ renderer.js:2
n @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
g @ renderer.js:2
n @ renderer.js:2
n @ renderer.js:2
n @ renderer.js:2
Bl @ renderer.js:2
Hl.confirmTransition @ renderer.js:2
Hl.transitionTo @ renderer.js:2
t.push @ renderer.js:2
(anonymous) @ renderer.js:2
tc.push @ renderer.js:2
rQ.push @ renderer.js:2
y @ renderer.js:2
Ht @ renderer.js:2
i @ renderer.js:2
a._wrapper @ renderer.js:2

@efb4f5ff-1298-471a-8973-3d47447115dc

@rjdg14 @ArthurKun21 we cant reproduce this yet on our end. Could you maybe provide some urls? Are you using a VPN and if so where was the server located when the error occurred?

@ArthurKun21
Copy link

Could you maybe provide some urls?

I don't have specific urls, but it was mostly music videos. But I can say that it is not happening too much.

Are you using a VPN

nope

@rjdg14
Copy link

rjdg14 commented Dec 11, 2024

Could you maybe provide some urls?

I don't have specific urls, but it was mostly music videos. But I can say that it is not happening too much.

Are you using a VPN

nope

In my experience the occasional music video still displays the error and then plays after a couple of tries.

@TheOracle22
Copy link

TheOracle22 commented Dec 11, 2024

@rjdg14 @ArthurKun21 we cant reproduce this yet on our end. Could you maybe provide some urls? Are you using a VPN and if so where was the server located when the error occurred?

Here are some URL's to reproduce:
https://youtu.be/v5ryZdpEHqM

https://youtu.be/_vw--yxcDNM

https://youtu.be/ZQCoh1PJjOk

These work totally fine in the browser, but give the error in this bug description in Freetube. No VPN on here.

@ArthurKun21
Copy link

Here are some URL's to reproduce: https://youtu.be/v5ryZdpEHqM

https://youtu.be/_vw--yxcDNM

https://youtu.be/ZQCoh1PJjOk

I tried loading this and only the 3rd one produced the error for me.

@TheOracle22
Copy link

Here are some URL's to reproduce: https://youtu.be/v5ryZdpEHqM
https://youtu.be/_vw--yxcDNM
https://youtu.be/ZQCoh1PJjOk

I tried loading this and only the 3rd one produced the error for me.

Search for "White Christmas." Almost all of those videos give me the same error. I am on a debian Linux build. v.0.22.0 Beta version.Local API
image

@efb4f5ff-1298-471a-8973-3d47447115dc

UPDATE: The error mentioned in the recent comments has been reproduced. We have to investigate this further. This will probably result in another upstream change.

@rjdg14

This comment has been minimized.

@riverpiers

This comment has been minimized.

@efb4f5ff-1298-471a-8973-3d47447115dc

UPDATE: second upstream fix is being tested as we speak

@Tetriser
Copy link

I got the 403 error whenever I try to open videos with "copyrighted music", is this related to this issue?
image

@efb4f5ff-1298-471a-8973-3d47447115dc

UPDATE: Second upstream fix has been released and we are currently testing it on our end as we speak

@efb4f5ff-1298-471a-8973-3d47447115dc

@Tetriser there is a high chance that this is related. Lets wait for the second fix to be merged so others can verify is this is resolved

@efb4f5ff-1298-471a-8973-3d47447115dc

UPDATE: We have tested the second fix on our end and if no more reports will come in we will put out a hotfix release ASAP.

@scoop96
Copy link

scoop96 commented Dec 12, 2024

@efb4f5ff-1298-471a-8973-3d47447115dc

Hi @scoop96 what version are you using?

@efb4f5ff-1298-471a-8973-3d47447115dc

UPDATE:

v0.22.1 has been released! You can download the latest version using the following methods:

Thank you for being patient and happy watching 📺!

@ArthurKun21
Copy link

Nightly is now 5304

https://github.com/FreeTubeApp/FreeTube/actions/workflows/build.yml

@cartersocha
Copy link

I updated to v22.1 beta and am still receiving this error on some music videos. I built locally on my Mac arm laptop.

Error specifically occurs on this video: https://youtu.be/a5uQMwRMHcs

@absidue
Copy link
Member

absidue commented Dec 14, 2024

@cartersocha As you said you built it yourself could you please specify exactly which commit you are using and did you make sure to run yarn install so that the correct versions of the dependencies are installed? Additionally please try one of the official builds just to be sure.

@cartersocha
Copy link

The yarn install seems to have fixed it. Thanks for the prompt reply! Im on 22.1 beta

@absidue
Copy link
Member

absidue commented Dec 14, 2024

@cartersocha Okay good to know it was caused by not building it correctly and not an actual problem with FreeTube. If you are going to be doing custom builds for yourself please make sure you build it correctly next time and test with one of the official builds, before reporting something as an issue with FreeTube.

@Astaoth

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment