FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

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

Open RevAngel7 opened this issue 4 years ago • 5 comments

Guidelines

  • [X] I have encountered this bug in the latest release of FreeTube.
  • [X] I have searched the issue tracker for a bug report that matches the one 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.

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

RevAngel7 avatar Aug 11 '22 18:08 RevAngel7

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

VictorVow avatar Aug 11 '22 18:08 VictorVow

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

SkyTheGreatOne avatar Aug 11 '22 19:08 SkyTheGreatOne

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)

petaded avatar Aug 11 '22 19:08 petaded

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.

nutstalker avatar Aug 11 '22 21:08 nutstalker

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

Gevaarlijk avatar May 05 '23 15:05 Gevaarlijk