-
-
Notifications
You must be signed in to change notification settings - Fork 93
Frequently Asked Questions
Open an issue or contact DisTube Support Server if this doesn't help you solve your problem.
FFmpeg/avconv not found
Do NOT install
FFmpeg
package. Uninstall it if installed.
You need to install FFmpeg first.
Solution 1: Install FFmpeg on: Windows - Linux (Ubuntu, Mint,...)
Solution 2: Install ffmpeg-static
package
npm install ffmpeg-static
RangeError: Source is too large
It caused by using opusscript
package.
Solution: Uninstall it and install @discordjs/opus
package.
npm uninstall opusscript
npm install @discordjs/opus
Error: Status code: 429
It caused by requesting YouTube videos too fast.
Solution: Use youtubeCookie
options (Documentation).
Note:
- You have to sign in before getting the cookie.
- Your bot IP might be restricted by YouTube when 429 happened. You have to wait for a few hours to have your bot works with added cookies
const client = Discord.Client()
const DisTube = require('distube')
client.DisTube = new DisTube(client, {
// You can read how to get it in the documentation
youtubeCookie: '<Your YouTube Cookie>'
})
Error: Cookie header used in request, but...
Your cookie in DisTubeOptions is not valid.
If you use document.cookie
, it cannot return some HttpOnly cookies are sent with the request.
Solution: Read the documentation to know how to get it correctly.
Error: VOICE_CONNECTION_TIMEOUT
It caused by your hosting/VPS network
Solution: If you are using free hosting, I recommend to change to the host below or use a paid service :>
Recommended Free Bot Hosting
My recommended free service to host a Discord Bot stably: Idley
Install skick1234/opus
if you cannot install @discordjs/opus
(Only for this host)
You don't need to install FFmpeg on this host because it's pre-installed.
Join Discord servers to gain more free resources.
CPU | RAM | Disk | Max Bots | Database | Port |
---|---|---|---|---|---|
85% per bot | 2GB or more | 5 GB or more | 2 or more | 2 or more | 2 or more |