Skip to content

Frequently Asked Questions

Skick edited this page Apr 22, 2024 · 17 revisions
1. Budget VPS Hosting
Blazingly fast, reliable VMs in 16 global locations at an extremely affordable price!

Available locations: πŸ‡ΊπŸ‡Έ πŸ‡³πŸ‡± πŸ‡ΈπŸ‡ͺ πŸ‡¦πŸ‡Ή πŸ‡³πŸ‡΄ πŸ‡¬πŸ‡§ πŸ‡¨πŸ‡­ πŸ‡­πŸ‡° πŸ‡ΈπŸ‡¬ πŸ‡―πŸ‡΅ πŸ‡¦πŸ‡Ί
Official DisTube Bot is hosted on this provider in Los Angeles πŸ‡ΊπŸ‡Έ ​

All plans, even 4$ plan, use the below specification:

  • CPU: AMD EPYC Milan
  • SSD: Samsung Enterprise NVMe Storage
  • Public Network Port: 10Gbps | 40Gbps (depends on location)
CPU
vCore
RAM
GB
Storage
GB
Price
US$
1 2 10 $4
2 4 20 $6
2 8 35 $9
4 12 50 $12
6 24 100 $22
8 32 125 $29
8 48 150 $39
12 64 200 $49
16 96 250 $69
2. FFmpeg/avconv not found Reason:
  • FFmpeg is not installed

Solution:

Note:

  • Do NOT install ffmpeg npm package. Uninstall it if installed with npm uninstall ffmpeg
3. The song ends instantly without any errors - Error: write EPIPE Reason:
  • This is due to your ffmpeg version is not stable. Mostly due to you are installed ffmpeg-static.

Solution:

  • Uninstall ffmpeg-static or your ffmpeg current version and install FFmpeg with the guide above.

How to uninstall ffmpeg-static

npm uninstall ffmpeg-static
npm ci --no-optional
npm update

If it still happens after using this workaround, delete node_modules folder and package-lock.json file then run npm install.
It should work when npm ls ffmpeg-static returns (empty).

4. Error: Cannot find module '@discordjs/opus'
RangeError: Source is too large
RangeError: offset is out of bounds
Reason:
  • @discordjs/opus package is not installed, or you installed node-opus, opusscript package

Solution:

  • Install @discordjs/opus package. Uninstall node-opus, opusscript if installed
npm uninstall opusscript node-opus
npm install @discordjs/opus
5. Error: Status code: 429 | 403 Reason:
  • It is caused by requesting YouTube videos too fast.

Solution:

  • Use youtubeCookie option (Guide).

You have to sign in before getting the cookie. And you may have to wait for YouTube to unblock your IP after getting this error.

6. Sign in to confirm your age Reason:
  • Playing YouTube age-restricted videos

Solution:

  • Use youtubeCookie option (Guide) from an account can play age restricted videos
7. Error: VOICE_CONNECTION_TIMEOUT Reason:
  • It is caused by your hosting/VPS network

Solution:

  1. Try to join the voice channel with <DisTube>.voices.join(voiceChannel) before using DisTube.play().
    You can retry if this function throws the above error.

  2. Use a better network service (like the above VPS)

My bot plays a random song after finishing all the queue
How to turn off autoplay
How to change queue's default properties
Reason:
  • Autoplay is on by default.

Solution: