Currently, I've been working on a music bot using discord.js. To handle audio streaming, I'm utilizing @discordjs/opus and ytdl-core-discord. Everything runs smoothly when testing the bot locally on my machine - songs from YouTube are played without any issues. However, when deploying the bot on repl.it (using the hacker plan), the playback suddenly stops after about 10 minutes.
The bot remains functional, but there's an abrupt halt in playback. Upon investigating this issue, I encountered the following error message:
{
Error: aborted
at connResetException (node:internal/errors:683:14)
at TLSSocket.socketCloseListener (node:_http_client:407:19)
at TLSSocket.emit (node:events:377:35)
at node:net:661:12
at TCP.done (node:_tls_wrap:578:7) {
code: 'ECONNRESET'
}
This error was obtained through:
dispatcher.on('error', console.log);
Here's the debug log:
[VOICE (796060146048041020:0)]: [WS] >> {"op":5, ...
To further investigate, I utilized:
client.on('debug', console.log);
If anyone has insights or suggestions to help resolve this situation, it would be greatly appreciated :)