Error: Could not extract functions
I’m currently facing an issue where I can’t download mp3/4. Everything was working fine until a few weeks ago. The other functions of this library are working fine. Hope this issue gets resolved soon
error message
Stream error: Error: Could not extract functions
at /Users/mark/Desktop/youtube-downloader/back-end/node_modules/ytdl-core/lib/sig.js:20:11
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
Download or merge failed: Error: Could not extract functions
at /Users/mark/Desktop/youtube-downloader/back-end/node_modules/ytdl-core/lib/sig.js:20:11
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
environment
node 22.16.0ytdl-core 4.11.5
same issue
I'm trying to identify the issue, and I can see that there have been changes to the files from which the functions are being extracted. (base.js)
This is where the code breaks
exports.getFunctions = (html5playerfile, options) => exports.cache.getOrSet(html5playerfile, async() => {
const body = await utils.exposedMiniget(html5playerfile, options).text();
const functions = exports.extractFunctions(body);
if (!functions || !functions.length) {
throw Error('Could not extract functions');
}
exports.cache.set(html5playerfile, functions);
return functions;
});
trying to parse the file and extract the function
Same issue here.
any fix yet?
any fix yet?
No not yet
Same issue
Same issue LOL
same issue
same
same issue