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]: Local API Error: Failed to extract n-token decipher algorithm #5502

Closed
5 of 6 tasks
daviddoji opened this issue Jul 31, 2024 · 29 comments · Fixed by #5507
Closed
5 of 6 tasks

[Bug]: Local API Error: Failed to extract n-token decipher algorithm #5502

daviddoji opened this issue Jul 31, 2024 · 29 comments · Fixed by #5507

Comments

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

Trid to play any video and got the following message:
Error: Failed to extract n-token decipher algorithm

Expected Behavior

Video reproduces

Issue Labels

content not loading

FreeTube Version

v0.21.2 Beta

Operating System Version

Archlinux, up-to-date

Installation Method

AUR (Unofficial)

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

v0.21.2 Beta

Additional Information

This morning, it did work 🤷 and system was not updated since.

Nightly Build

@zephiii

This comment was marked as duplicate.

@kkorlass

This comment has been minimized.

@XenithXemaku

This comment was marked as duplicate.

@darktohka

This comment has been minimized.

@M-Hamano16

This comment has been minimized.

@CharaDr33murr
Copy link

Guys, just upvote the post. The issue seems to be similar to the one that happened recently - likely YouTube cracking down. Let's not spam the comments.

@darktohka
Copy link

Using the main branch of https://github.com/LuanRT/YouTube.js solves the issue on nightly.

So maybe we need to wait for a new version release of the library?

@darktohka
Copy link

To try the nightly branch of YouTube.js: edit the package.json to reflect

    "youtubei.js": "git+https://github.com/darktohka/YouTube.js.git"

There are build errors on the current main branch of YouTube.js, until the fixes are merged feel free to use my fork to test whether the new version fixes the issue.

@birb7
Copy link

birb7 commented Jul 31, 2024

To try the nightly branch of YouTube.js: edit the package.json to reflect

    "youtubei.js": "git+https://github.com/darktohka/YouTube.js.git"

There are build errors on the current main branch of YouTube.js, until the fixes are merged feel free to use my fork to test whether the new version fixes the issue.

how do i even build freetube? theres no cmake or build instructions anywhere.

@absidue
Copy link
Member

absidue commented Jul 31, 2024

Using the main branch of https://github.com/LuanRT/YouTube.js solves the issue on nightly.

So maybe we need to wait for a new version release of the library?

The actual fix is in an open pull request on that repo, so they definitely won't do a release until that is finished and merged.

@absidue
Copy link
Member

absidue commented Jul 31, 2024

To try the nightly branch of YouTube.js: edit the package.json to reflect


    "youtubei.js": "git+https://github.com/darktohka/YouTube.js.git"

There are build errors on the current main branch of YouTube.js, until the fixes are merged feel free to use my fork to test whether the new version fixes the issue.

As mentioned on your YouTube.js bug reports, the build errors don't happen if you build it correctly (clone YouTube.js, build it and add the built version to FreeTube).

@birb7
Copy link

birb7 commented Jul 31, 2024

To try the nightly branch of YouTube.js: edit the package.json to reflect


    "youtubei.js": "git+https://github.com/darktohka/YouTube.js.git"

There are build errors on the current main branch of YouTube.js, until the fixes are merged feel free to use my fork to test whether the new version fixes the issue.

As mentioned on your YouTube.js bug reports, the build errors don't happen if you build it correctly (clone YouTube.js, build it and add the built version to FreeTube).

how would i go about doing that? do i have to add the built youtube.js, and then build freetube? or does it get put into a certain spot where freetube stores data? and where are the instructions to build freetube (if needed)?

@Robert-CMDedu

This comment has been minimized.

@JEsa44

This comment has been minimized.

@absidue
Copy link
Member

absidue commented Jul 31, 2024

We are aware of the problem that YouTube has intentionally broken stuff again, everyone is affected, so please don't comment unless you have something to add that hasn't already been said.

@absidue
Copy link
Member

absidue commented Jul 31, 2024

@birb7 How to build is mentioned in the docs and yes you won't find a CMake file because this is a JavaScript project.

https://docs.freetubeapp.io/development/building-from-source

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc changed the title [Bug]: Error: Failed to extract n-token decipher algorithm [Bug]: Local API Error: Failed to extract n-token decipher algorithm Jul 31, 2024
@efb4f5ff-1298-471a-8973-3d47447115dc

Upstream fix is being tested as we speak

Temporary workaround, for the best viewing experience I recommend doing the following things:

  • Set Primary API to Invidious in the General Settings
  • Select an Instance that is near to you, see https://api.invidious.io/. Make sure to pick one that has a check mark in the API field. Also make sure you start typing the instance name in the Current Invidious Instance field under the General Settings with https:// and it should list instances as suggestions.
  • Disable Fallback to Non-Preferred Backend on Failure in the General Settings
  • Disable Proxy Videos Through Invidious in the Player settings

Note

Some Invidious instances throws the error you see in #5489. You should try other Invidious instances when this occurs. It could be difficult to find a working instance because some Invidious instances are IP blocked by YouTube.

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

UPDATE:

Upstream fix has been merged.
We are currently testing the fix.

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

UPDATE:

Fix has successfully passed our testing. Hotfix release will be coming soon!

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

UPDATE:

We are facing some technical difficulties with GitHub. We aim to resolve it ASAP so we can provide the hotfix release. Thank you all for being patient!

@ACR-Jeff
Copy link

ACR-Jeff commented Aug 2, 2024

The latest nightly has been working great for the last 12 hours for me.
https://github.com/FreeTubeApp/FreeTube/actions/runs/10198632871

@konomikitten
Copy link

It'd be great if flatpak version could get an update, I haven't been able to use FreeTube for 2 days now and the fix has been out for 1 day. It's not exactly easy for flatpak users to switch to an AppImage.

@absidue
Copy link
Member

absidue commented Aug 2, 2024

@konomikitten The flatpak will get updated when the release happens, there is no nightly flatpak.

@konomikitten
Copy link

@konomikitten The flatpak will get updated when the release happens, there is no nightly flatpak.

So my understanding is if people use the flatpak version of FreeTube and YouTube breaks it we'll wait longer for it to be working again than people using the AppImage?

@absidue
Copy link
Member

absidue commented Aug 2, 2024

No, that is incorrect, there hasn't been a release yet, the stable/release AppImage is the same as the flatpak release.

What was linked above are the nightly/bleeding edge builds, which are created automatically from the lastest changes on the development branch. They are only meant for people that want to help test changes before they are released. They aren't intended for every day use and we recommend doing frequent backups if you do decide to use them, as the nightly builds get a lot less testing than the release builds.

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

UPDATE:

The issues we were facing earlier are resolved. Release incoming!

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

UPDATE:

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

Thank you for being patient and happy watching 📺!

@exefile2
Copy link

exefile2 commented Aug 2, 2024

To try the nightly branch of YouTube.js: edit the package.json to reflect

    "youtubei.js": "git+https://github.com/darktohka/YouTube.js.git"

There are build errors on the current main branch of YouTube.js, until the fixes are merged feel free to use my fork to test whether the new version fixes the issue.

What do you mean by YouTube.js? Can anyone please explain me?

@b1k3rdude

This comment has been minimized.

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

Successfully merging a pull request may close this issue.

17 participants