Node-ytdl-core: Error: input stream: Could not find player config

Created on 29 Oct 2020  路  2Comments  路  Source: fent/node-ytdl-core

Hello,

I'm using ytdl-core in my Discord bot which worked fine for a long time. I noticed yesterday, that it didn't work anymore, tried upgrading to the newest version but does still throw the same error.
Since Youtube must've changed something many services like NewPipe didn't work anymore. For example NewPipe had the exact same error message saying that the player config couldn't be found and in their latest release yesterday, they finally fixed it. A link to their issue can be found here. Maybe it's easier for you to fix it given this.

The exception occurres in ytdl-core/lib/info.js at exports.getBasicInfo. So it's most likely it's a problem with ytdl-core. Here's the stacktrace:
Error: input stream: Could not find player config at exports.getBasicInfo (/home/discord/bots/symphony/node_modules/ytdl-core/lib/info.js:59:13) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async Object.exports.<computed> [as getBasicInfo] (/home/discord/bots/symphony/node_modules/ytdl-core/lib/info.js:297:18) at async exports.getFullInfo (/home/discord/bots/symphony/node_modules/ytdl-core/lib/info.js:188:14) at async Object.exports.<computed> [as getFullInfo] (/home/discord/bots/symphony/node_modules/ytdl-core/lib/info.js:297:18)

Running latest ytdl-core on:
Node v12.14.0 with NPM v6.13.4 on Ubuntu 18.04

old version

Most helpful comment

Update to version 4.0.0 -> check your package.json -> "ytdl-core": "^4.0.0" -> run npm install

All 2 comments

Update to version 4.0.0 -> check your package.json -> "ytdl-core": "^4.0.0" -> run npm install

Thank you, this resolved the problem.

Was this page helpful?
0 / 5 - 0 ratings