Error: Could not extract functions – ytdl-core fails for all YouTube videos
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.
I can confirm this is an issue. On a completely fresh install.
I suspect YouTube might have changed something on their end that broke the signature extraction logic.
having the same issue
also having the same issue
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)"
I have also getting the same issue.
Anybody have an expected timeline on this fix?
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
I am having the same issue
Same, looks like a dead project.
Im having the same issue, anyone know how to fix it?
this worked for me https://github.com/fent/node-ytdl-core/issues/1318#issuecomment-2539249524