SushiBtw / discord-music-player

Complete framework to facilitate music commands using discord.js v14 & v13.
https://discord-music-player.js.org/
MIT License
158 stars 65 forks source link

[BUG] ytdl-core throws "aborted" error on longer songs #305

Open EnneS opened 1 year ago

EnneS commented 1 year ago

Bug Description Stream stops 35 minutes in. ytdl-core throws an "aborted" error.

Reproduction Steps Steps to reproduce the behavior:

  1. Play a long song
  2. Error is thrown after several minutes

Expected Result Song plays out fully

Versioning:

Additional Comments The issue is coming from ytdl-core. This thread already talks about it : https://github.com/fent/node-ytdl-core/issues/902 The way to solve it is either to downgrade node to v14.x.x or increase the highWaterMark setting. Some suggest 1 << 62 which is the highest value possible and could let songs longer than an hour play out without getting an abort error. An other way is to use play-dl instead of ytdl-core.

SushiBtw commented 1 year ago

Will check!