Voice keeps crashing
I saw the faq post and i already have and tried 0.16.1 of discord js voice but it still keeps disconnecting and crashing with a error, its completly random at times it can play entirely or only work for a few secs before it crashes and yes i checked the file and it indead says its on version 0.16.1 and i am using discordjs 14.13.0
Here is the error code:
AudioPlayerError: aborted
at connResetException (node:internal/errors:720:14)
at TLSSocket.socketCloseListener (node:_http_client:461:19)
at TLSSocket.emit (node:events:526:35)
at node:net:323:12
at TCP.done (node:_tls_wrap:588:7) {
resource: AudioResource {
playStream: OggDemuxer {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 5,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
_remainder: null,
_head: null,
_bitstream: null,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: [Function: bound onwrite]
},
edges: [ [Object], [Object] ],
metadata: null,
volume: undefined,
encoder: undefined,
audioPlayer: AudioPlayer {
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
_state: [Object],
subscribers: [Array],
behaviors: [Object],
debug: [Function (anonymous)],
[Symbol(kCapture)]: false
},
playbackDuration: 25700,
started: true,
silencePaddingFrames: 5,
silenceRemaining: -1
}
}
11 Replies
- 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![email protected]
node v20.9.0
isn't this related to ytdl-core?
hmm possibly but i cant seem to get it to work alone it closes instanly then
unless im doing it wrong for the other way
I didn't use /voice enough to help you sorry
ah i throught that was also updated too
for some rason i cant get it working atall now either way just closes or stays with no audio
ok i messed around with the ytdl version and seems to be working at the moment if i have issues again il try another ytdl i found thanks but hopefully its working now1
nvm it crashed after a while again
i think i found the issue
what was it
i think i have a connection per command and when it closes it closes everything
i know you shoudl only have 1
im gonna try fix it properly later and see
Think i fixed it now
I used to have that while playing online resources, the fix for me was to make the request myself and simply pass the stream
Are you playing from a URL?
yeah i am but whatever i did since then and now fixed it it seems so seems good now can probably close this now
code