Bot suddenly stops playing music

when playing bigger songs, bot suddenly aborts
Error: aborted
at connResetException (node:internal/errors:717:14)
at TLSSocket.socketCloseListener (node:_http_client:462:19)
at TLSSocket.emit (node:events:525:35)
at node:net:322:12
at TCP.done (node:_tls_wrap:588:7) {
code: 'ECONNRESET'
}
node:events:491
throw er; // Unhandled 'error' event
^

AudioPlayerError: aborted
at connResetException (node:internal/errors:717:14)
at TLSSocket.socketCloseListener (node:_http_client:462:19)
at TLSSocket.emit (node:events:525:35)
at node:net:322:12
at TCP.done (node:_tls_wrap:588:7)
Emitted 'error' event on AudioPlayer instance at:
at OggDemuxer.onStreamError (C:\Users\ADMIN\GitHub\v14Bot\node_modules\@discordjs\voice\dist\index.js:1110:14)
at Object.onceWrapper (node:events:628:26)
at OggDemuxer.emit (node:events:525:35)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Error: aborted
at connResetException (node:internal/errors:717:14)
at TLSSocket.socketCloseListener (node:_http_client:462:19)
at TLSSocket.emit (node:events:525:35)
at node:net:322:12
at TCP.done (node:_tls_wrap:588:7) {
code: 'ECONNRESET'
}
node:events:491
throw er; // Unhandled 'error' event
^

AudioPlayerError: aborted
at connResetException (node:internal/errors:717:14)
at TLSSocket.socketCloseListener (node:_http_client:462:19)
at TLSSocket.emit (node:events:525:35)
at node:net:322:12
at TCP.done (node:_tls_wrap:588:7)
Emitted 'error' event on AudioPlayer instance at:
at OggDemuxer.onStreamError (C:\Users\ADMIN\GitHub\v14Bot\node_modules\@discordjs\voice\dist\index.js:1110:14)
at Object.onceWrapper (node:events:628:26)
at OggDemuxer.emit (node:events:525:35)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
5 Replies
d.js toolkit
d.js toolkit14mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Incorecc
IncoreccOP14mo ago
I see But the aborts are very consistent, like exactly 40 seconds in and it just dies and this makes me believe it may not be a net issue Is there any other reason why the bot may have aborted? 0.15.0 I updated it to 0.16.0 and the issue still persists interestingly it seems to take longer time to abort, like now it runs for 45 sec before stoping theres no problem with shorter songs ├── @discordjs/[email protected] └─┬ [email protected] └── @discordjs/[email protected] deduped
d.js docs
d.js docs14mo ago
To debug your voice connection and player: - Use debug: true when creating your VoiceConnection and AudioPlayer - Add an event listener to the <VoiceConnection> and the <AudioPlayer>:
// Add one for each class if applicable
<AudioPlayer | VoiceConnection>
.on('debug', console.log)
.on('error', console.error)
// Add one for each class if applicable
<AudioPlayer | VoiceConnection>
.on('debug', console.log)
.on('error', console.error)
- Add an error listener to the stream you are passing to the resource:
<Stream>.on('error', console.error)
<Stream>.on('error', console.error)
Note: The <> represents classes that need to be adapted to their respective name in your code
Incorecc
IncoreccOP14mo ago
Error: aborted
at connResetException (node:internal/errors:717:14)
at TLSSocket.socketCloseListener (node:_http_client:462:19)
at TLSSocket.emit (node:events:525:35)
at node:net:322:12
at TCP.done (node:_tls_wrap:588:7) {
code: 'ECONNRESET'
}
Error: aborted with resource
state change:
from {"status":"playing","missedFrames":0,"playbackDuration":47780,"resource":true,"stepTimeout":false}
to {"status":"idle","resource":false,"stepTimeout":false}
Error: aborted
at connResetException (node:internal/errors:717:14)
at TLSSocket.socketCloseListener (node:_http_client:462:19)
at TLSSocket.emit (node:events:525:35)
at node:net:322:12
at TCP.done (node:_tls_wrap:588:7) {
code: 'ECONNRESET'
}
Error: aborted with resource
state change:
from {"status":"playing","missedFrames":0,"playbackDuration":47780,"resource":true,"stepTimeout":false}
to {"status":"idle","resource":false,"stepTimeout":false}
ignore the Error: aborted with resource Its a custom error message I use for the audioplayer
state change:
from {"status":"buffering","resource":true,"stepTimeout":false}
to {"status":"playing","missedFrames":0,"playbackDuration":0,"resource":true,"stepTimeout":false}
Error: aborted
at connResetException (node:internal/errors:717:14)
at TLSSocket.socketCloseListener (node:_http_client:462:19)
at TLSSocket.emit (node:events:525:35)
at node:net:322:12
at TCP.done (node:_tls_wrap:588:7) {
code: 'ECONNRESET'
}
Error: aborted with resource
state change:
from {"status":"playing","missedFrames":0,"playbackDuration":47780,"resource":true,"stepTimeout":false}
to {"status":"idle","resource":false,"stepTimeout":false}
state change:
from {"status":"buffering","resource":true,"stepTimeout":false}
to {"status":"playing","missedFrames":0,"playbackDuration":0,"resource":true,"stepTimeout":false}
Error: aborted
at connResetException (node:internal/errors:717:14)
at TLSSocket.socketCloseListener (node:_http_client:462:19)
at TLSSocket.emit (node:events:525:35)
at node:net:322:12
at TCP.done (node:_tls_wrap:588:7) {
code: 'ECONNRESET'
}
Error: aborted with resource
state change:
from {"status":"playing","missedFrames":0,"playbackDuration":47780,"resource":true,"stepTimeout":false}
to {"status":"idle","resource":false,"stepTimeout":false}
Im using a readable stream ytdl I think I'm not allowed to show you code Ok understandable
lordwolfy
lordwolfy14mo ago
eurla-spotify is better
Want results from more Discord servers?
Add your server