fent/node-ytdl-core

Crash bot discord #814

DimaD16 posted onGitHub

Hello, i have a bot music discord ans i start play ... The bot start, when the bot as a errors in console, the bot crash and a long errors ytdl-core in a console. Please help me


can you provide the error & stack?

posted by TimeForANinja about 4 years ago

same here.

return this.encoder.decode(buffer, Opus.name === 'opusscript' ? null : this._options.frameSize); ^

TypeError: The compressed data passed is corrupted

posted by haruzinh0 about 4 years ago

ytdl.getInfo(url, options).then(info => {}); i can't exit my cli when i run my file example.js Screenshot from 2020-12-08 15-27-35

posted by trandung1291 about 4 years ago

It is a long errors image

posted by DimaD16 about 4 years ago

Error: Error parsing info: Unable to retrieve video metadata at getWatchPage (C:\Users\Bruno\Desktop\Desktop D\TestarBOT\node_modules\ytdl-core\lib\info.js:75:13)
at processTicksAndRejections (internal/process/task_queues.js:97:5) at async exports.getBasicInfo (C:\Users\Bruno\Desktop\Desktop D\TestarBOT\node_modules\ytdl-core\lib\info.js:84:22) at async Map.getOrSet (C:\Users\Bruno\Desktop\Desktop D\TestarBOT\node_modules\ytdl-core\lib\cache.js:24:19) at async exports.getInfo (C:\Users\Bruno\Desktop\Desktop D\TestarBOT\node_modules\ytdl-core\lib\info.js:226:14) at async Map.getOrSet (C:\Users\Bruno\Desktop\Desktop D\TestarBOT\node_modules\ytdl-core\lib\cache.js:24:19) at async download (C:\Users\Bruno\Desktop\Desktop D\TestarBOT\node_modules\ytdl-core-discord\index.js:26:15)

posted by brunogomes98 about 4 years ago

It is a long errors image

@DimaD16 the only error i see in there is DiscordAPIError: Missing Permissions so check if the bot is allowed to join the channel and play there besides that doesn't look like a ytdl-core issue

posted by TimeForANinja about 4 years ago

Error: Error parsing info: Unable to retrieve video metadata at getWatchPage (C:\Users\Bruno\Desktop\Desktop D\TestarBOT\node_modules\ytdl-core\lib\info.js:75:13) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async exports.getBasicInfo (C:\Users\Bruno\Desktop\Desktop D\TestarBOT\node_modules\ytdl-core\lib\info.js:84:22) at async Map.getOrSet (C:\Users\Bruno\Desktop\Desktop D\TestarBOT\node_modules\ytdl-core\lib\cache.js:24:19) at async exports.getInfo (C:\Users\Bruno\Desktop\Desktop D\TestarBOT\node_modules\ytdl-core\lib\info.js:226:14) at async Map.getOrSet (C:\Users\Bruno\Desktop\Desktop D\TestarBOT\node_modules\ytdl-core\lib\cache.js:24:19) at async download (C:\Users\Bruno\Desktop\Desktop D\TestarBOT\node_modules\ytdl-core-discord\index.js:26:15)

@brunogomes98 update

posted by TimeForANinja about 4 years ago

ytdl.getInfo(url, options).then(info => {}); i can't exit my cli when i run my file example.js Screenshot from 2020-12-08 15-27-35

@trandung1291 no error and doesn't look like it's from ytdl.getInfo

posted by TimeForANinja about 4 years ago

same here.

return this.encoder.decode(buffer, Opus.name === 'opusscript' ? null : this._options.frameSize); ^

TypeError: The compressed data passed is corrupted

Did you install @discordjs/opus or opusscript, and if so what version are you running?

posted by BR88C about 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

posted by stale[bot] almost 4 years ago

Fund this Issue

$0.00
Funded

Pull requests