FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
13.55k stars 843 forks source link

[Bug]: Local Api Error: TypeError: Cannot read properties of null (reading '2') #2468

Closed RevAngel7 closed 2 years ago

RevAngel7 commented 2 years ago

Guidelines

Describe the bug

v0.17.0 Beta On every video I click to play I get a Local Api Error: TypeError: Cannot read properties of null (reading '2') error now and it switches to Invidious API. It's strange, because I used the 17 Beta from release day on, and never encountered the error before, did not make any changes in configuration. Using this version from the .deb installation for Ubuntu 22.04.1 LTS using kernel 5.19.1. 2022-08-11_error_FreeTube

Expected Behavior

Video should load over standard local youtube API

Issue Labels

API issue

FreeTube Version

v0.17.0 Beta

Operating System Version

Ubuntu 22.04.1 LTS using kernel 5.19.1

Installation Method

.deb

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

-

Additional Information

No response

Nightly Build

Victor239 commented 2 years ago

Believe I have the same issue which started within this past hour also. YouTube likely changed something on their side.

SkyTheGreatOne commented 2 years ago

I also have the same issue. Tried using a VPN, switching Invidious instances, and disabling firewall. @Victor239 is likely correct.

petaded commented 2 years ago

I am having the same issue with 17.0 and 16.0 however version 0.15.1 of freetube is working for me. am happily watching videos using that.

The issue started the same time as Victor239 mentioned. Note: I am running Manjaro and using the appimage for all three different versions.

Seems its an issue with ytdl-core's they have the same bug opened at the same time as this one: https://github.com/fent/node-ytdl-core/issues/1108

Here is the console log fyi:

Getting video info please wait...
renderer.js:2 evalmachine.<anonymous>:339
rma=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,bu(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]};Yka(ncode);
                                                                                                                                                                                                                             ^^^^^^^^^^^^^^^^

SyntaxError: Invalid or unexpected token
    at new Script (node:vm:100:7)
    at Object.exports.decipherFormats (/tmp/.mount_freetuU0bpDH/resources/app.asar/node_modules/ytdl-core/lib/sig.js:116:51)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 0)
    at async exports.getInfo (/tmp/.mount_freetuU0bpDH/resources/app.asar/node_modules/ytdl-core/lib/info.js:401:17)
nutstalker commented 2 years ago

encountered the same issue starting today. I have been on the latest version since Aug 5th and had no issues until today..I'm sure YT has changed something on their end.

Gevaarlijk commented 1 year ago

I get this same error when I try to 'fetch more results'. The first 2 or 3 fetches work, after that no more.