Closed TheSainEyereg closed 4 months ago
ECONNRESET
means your connection abrupted, maybe due to unstable connection.
You can use ytdl.getInfo()
to get the stream url, then use @discordjs/voice
's createAudioResouce
or distube
to manage the audio stream instead of ytdl-core
, I don't maintain the built-in stream of this fork.
means your connection abrupted, maybe due to unstable connection.
Well, it can't be a connection problem since it's present both on the remote server and on my machine.
Thx for answer anyway
same problem after changing from ytdl-core, please update if you found the fix
I'm also having this same issue, it happens both locally and on the remote server. It does not look like a connexion issue.
I just had also the issue, it seems that I have fixed it by passing the dlChunkSize: 0
to ytdl
let yt = ytdl(url, { filter : 'audioonly', dlChunkSize: 0, agent });
let resource = createAudioResource(yt);
I just had also the issue, it seems that I have fixed it by passing the
dlChunkSize: 0
to ytdllet yt = ytdl(url, { filter : 'audioonly', dlChunkSize: 0, agent }); let resource = createAudioResource(yt);
what is agent?
agent is my cookie
const agent = ytdl.createAgent([/* ... cookie ...*/ ]);
Describe the bug
Crashes during playback when using with Discord.js
Debug File
Btw on original ytdl-core the fix was passing this as options:
Environment
Linux aarch64-8gb 5.15.0-1051-oracle #57-Ubuntu SMP Wed Jan 24 18:31:24 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux