node-ytdl-core icon indicating copy to clipboard operation
node-ytdl-core copied to clipboard

Error: Could not extract functions – ytdl-core fails for all YouTube videos

Open d43ash1sh opened this issue 7 months ago • 9 comments

Hi, I am experiencing the following error with ytdl-core on all public YouTube videos, even with the latest version: Error: Error: Could not extract functions at node_modules/ytdl-core/lib/sig.js:20:11 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Steps to Reproduce: 1.Install the latest ytdl-core (npm install ytdl-core@latest) 2.Run this test script: const ytdl = require('ytdl-core'); const url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; ytdl.getInfo(url) .then(info => console.log('Title:', info.videoDetails.title)) .catch(err => console.error('Error:', err)); 3.Observe the error above for any public YouTube video. Environment: Node.js version: (18.18.0) ytdl-core version: (4.11.5 or latest) OS: (macOS Sonoma) Additional Info: This happens for all public videos, not just specific ones. I have tried updating ytdl-core and reinstalling dependencies. The error started recently.

Image

d43ash1sh avatar May 11 '25 20:05 d43ash1sh

I can confirm this is an issue. On a completely fresh install.

n-th-n-n avatar May 12 '25 02:05 n-th-n-n

I suspect YouTube might have changed something on their end that broke the signature extraction logic.

d43ash1sh avatar May 12 '25 11:05 d43ash1sh

having the same issue

evanlin23 avatar May 13 '25 20:05 evanlin23

also having the same issue

AbdelatefElshafei avatar May 14 '25 14:05 AbdelatefElshafei

Having the same issue "Error fetching video info: Error: Could not extract functions at C......\backend\node_modules\ytdl-core\lib\sig.js:20:11 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"

digitalhandy avatar May 17 '25 14:05 digitalhandy

I have also getting the same issue.

BalrajMsr avatar May 18 '25 08:05 BalrajMsr

Anybody have an expected timeline on this fix?

n-th-n-n avatar May 19 '25 23:05 n-th-n-n

Having the same issue Error: Could not extract functions at D.....\node_modules\ytdl-core\lib\sig.js:20:11 at processTicksAndRejections (node:internal/process/task_queues:105:5) [ERROR] 17:18:05 Error: Could not extract functions

Vinit-180 avatar Jun 07 '25 11:06 Vinit-180

I am having the same issue

AbsoluteSkid avatar Jun 14 '25 15:06 AbsoluteSkid

Same, looks like a dead project.

Kcko avatar Jul 10 '25 13:07 Kcko

Im having the same issue, anyone know how to fix it?

bileyassein avatar Jul 16 '25 15:07 bileyassein

this worked for me https://github.com/fent/node-ytdl-core/issues/1318#issuecomment-2539249524

henrique-arthur avatar Jul 17 '25 12:07 henrique-arthur

this worked for me #1318 (comment)

I can confirm that really works!

Kcko avatar Jul 17 '25 12:07 Kcko