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?
same here.
return this.encoder.decode(buffer, Opus.name === 'opusscript' ? null : this._options.frameSize); ^
TypeError: The compressed data passed is corrupted
ytdl.getInfo(url, options).then(info => {}); i can't exit my cli when i run my file example.js
It is a long errors
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)
It is a long errors
@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
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
ytdl.getInfo(url, options).then(info => {}); i can't exit my cli when i run my file example.js
@trandung1291 no error and doesn't look like it's from ytdl.getInfo
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?
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.