FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: Local API Error: `[object Object]`

Open BeatlesNo1 opened this issue 9 months ago • 33 comments

Guidelines

Describe the bug

Errors on Local and Invidius APIs every time I try to play any videos.

Local API error: object Object

Invidius API error: SyntaxError: Unexpected Token

Expected Behavior

Play the video.

Issue Labels

API issue

FreeTube Version

0.23,13

Operating System Version

Arch Linux

Installation Method

.AppImage

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

0.23.13

Additional Information

No response

Nightly Build

BeatlesNo1 avatar Mar 04 '26 17:03 BeatlesNo1

Downloading with yt-dlp still works. Maybe as a secondary fallback, freetube can download the video and play it using that?

Shringe avatar Mar 04 '26 20:03 Shringe

Thankyou for making us aware of this issue.

All videos are currently failing and return the Local API error [object Object]

Our team is actively investigating and will provide updates as they become available.

Update: The issue seems to be a bit more complex like other times which means it will probably take a bit more time to properly solve this. Therefore we are adding the workaround so our users can keep watching videos. This workaround can break at any point of time.

There will be a hotfix release provided ASAP

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

Thank you for being patient and happy watching 📺!

[!NOTE] Flatpak builds will be in Flathub as soon as they can.

You got to love this team. thanks for the fix.

XDoKToR avatar Mar 05 '26 14:03 XDoKToR

Absolute heroes. Thanks!

cathteg avatar Mar 05 '26 18:03 cathteg

You are the BEST. My wife asks if we can buy you guys a coffee?

l0l08844 avatar Mar 05 '26 18:03 l0l08844

@l0l08844

Feel free to make an one time donation or monthly to our team members

  • https://github.com/sponsors/absidue
  • https://github.com/sponsors/PikachuEXE

@l0l08844

Feel free to make an one time donation or monthly to our team members

* https://github.com/sponsors/absidue

* https://github.com/sponsors/PikachuEXE

I did one-time donation to both. Thank you for your work!

BeatlesNo1 avatar Mar 05 '26 18:03 BeatlesNo1

you are amazing, thank you

Pashoupati avatar Mar 05 '26 19:03 Pashoupati

Holy shit, you are awesome! I'm gonna update right now!

Galac-Panda2026 avatar Mar 06 '26 09:03 Galac-Panda2026

It's great to see all the appreciation, and we really do value the support. However, let's keep this issue focused on the specific error being discussed.

As noted in the release notes: "This workaround is just a temporary fix and could stop working at any point in time." That’s why this issue is still open.

If you'd like to leave appreciative comments, please do so here: https://github.com/FreeTubeApp/FreeTube/discussions/8740 :)

To keep this issue organized and focused, appreciative comments will be marked as off-topic within 24 hours (including this one).

I'm a bit late to the party, but I have just updated to 23.14 Beta, and I am unable to play any videos:

Image

If I click to copy this is what I get:

[object Object]

SyntaxError: Unexpected token 'E', "Endpoint disabled" is not valid JSON

kevinscottuk avatar Mar 06 '26 11:03 kevinscottuk

Look like youtube using xor bitwise obfuscator. Did you find any solution to decrypt n and sig params? I can find the n decrypt function but need runtime env to know what params are

leevinh3291 avatar Mar 06 '26 12:03 leevinh3291

On my side is working well Fedora 43 Gnome edition, rpm install

Pashoupati avatar Mar 06 '26 12:03 Pashoupati

On my side is working well Fedora 43 Gnome edition, rpm install

the hardcode player will be inactived soon. Hardcode playerId is just a temporary workaround.

leevinh3291 avatar Mar 06 '26 13:03 leevinh3291

I'm a bit late to the party, but I have just updated to 23.14 Beta, and I am unable to play any videos: Image

If I click to copy this is what I get:

[object Object]

SyntaxError: Unexpected token 'E', "Endpoint disabled" is not valid JSON

Same problem here with Windows 10

Image

Fl4shG0re avatar Mar 06 '26 13:03 Fl4shG0re

@kevinscottuk Could you please upload a screenrecording? Please show the following:

  • The about page to confirm the version you are on
  • Watch the page with the error related to this issue

I am having the same problem; I think the .deb for Ubuntu/Debian x64 is somehow mixed up, since after updating it continues displaying v0.23.13 Beta in the about tab instead of .14. Using the appimage I had no such problem.

Edit: Might be a problem with some configuration in apt, since @Milburne did not reproduce it. I'll try to see if I can fix it. Edit 2: Disregard, was a mixup with flatpak.

ericserbinenko avatar Mar 06 '26 17:03 ericserbinenko

Just to add some information, no issues seem to be happening on Windows 10. So there probably is some sort of issue on Linux

DestinyPlayer avatar Mar 06 '26 17:03 DestinyPlayer