FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

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

Open InterPotato123 opened this issue 1 year ago • 45 comments

Guidelines

  • [X] I have encountered this bug in the latest release of FreeTube.
  • [X] I have encountered this bug in the official downloads of FreeTube.
  • [X] I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
  • [X] I have searched the documentation for information that matches the description of the bug I want to file, without success.
  • [X] 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

InterPotato123 avatar Dec 09 '24 17:12 InterPotato123

Glad I wasn't the one that I'm having the same issues. This is what the "Unexcepted token [1:71]" error looks like on the screenshot.

Screenshot_20241209_125842

ghost avatar Dec 09 '24 18:12 ghost

It currently appears to be happening with every video in FreeTube but doesn't seem to be affecting playback in NewPipe as of the time of writing.

Gourlish avatar Dec 09 '24 18:12 Gourlish

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

absidue avatar Dec 09 '24 18:12 absidue

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.

Gourlish avatar Dec 09 '24 18:12 Gourlish

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

absidue avatar Dec 09 '24 18:12 absidue

It's worth to mention that the "fake age restriction" popup mentioned in #6112 appears even when the errror is just Invidious API error, at least for me. I think it should've been changed to show only when trying to actually play age restricted videos.

InterPotato123 avatar Dec 09 '24 18:12 InterPotato123

@windowsfan6 Please stay on-topic, as mentioned in your other issue that has nothing to do with age-restrictions.

absidue avatar Dec 09 '24 18:12 absidue

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.

SciverSatoh avatar Dec 09 '24 19:12 SciverSatoh

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.

Gourlish avatar Dec 09 '24 19:12 Gourlish

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.

DestructionDyme avatar Dec 09 '24 19:12 DestructionDyme

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

scoop96 avatar Dec 09 '24 21:12 scoop96

It seems like when it switches to Invidious it works now. Invidious has fixed the bug.

liammcsh2008 avatar Dec 10 '24 02:12 liammcsh2008

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

Tested 78f75d3f13d9e086082329f489af9e00cf93f89d and working! many thanks

ArthurKun21 avatar Dec 10 '24 14:12 ArthurKun21

Many thanks! Tested 78f75d3 and it worked but every video is played with a resolution of 360p only. Is this expected behavior or only a problem on my side?

rowo2002 avatar Dec 10 '24 16:12 rowo2002

@rowo2002 I don't have that issue.

ghost avatar Dec 10 '24 16:12 ghost

@Bennguyen2 Thank you for your quick hint. Don't know how - don't know why - my default video format was set to legacy :-( after returning to DASH everything is fine again!

rowo2002 avatar Dec 10 '24 16:12 rowo2002

When attempting the MacOS ARM64 build of the fix on an Apple Silicon Mac it seems to claim that it is damaged and can't be opened. This may be due to signed software settings in newer versions of MacOS. Is there any terminal command that will make it work (as I think you can use to bypass this)?

The Intel Mac version does run through Rosetta (and the problem looks to be fixed) but it's not very well optimised for ARM Macs and as a result runs slowly on them.

Gourlish avatar Dec 10 '24 23:12 Gourlish