Open int0x80-sys opened 2 years ago
@discordjs/voice@0.14.0 and node v19.6.1, still got the error.
Error [ERR_STREAM_PUSH_AFTER_EOF]: stream.push() after EOF
at new NodeError (node:internal/errors:399:5)
at readableAddChunk (node:internal/streams/readable:285:30)
at Readable.push (node:internal/streams/readable:234:10)
at AudioReceiveStream.push (C:\Users\Maxime\Documents\Programmation\_temp\DiscordGPT\node_modules\@discordjs\voice\dist\index.js:1069:18)
at VoiceReceiver.onUdpMessage (C:\Users\Maxime\Documents\Programmation\_temp\DiscordGPT\node_modules\@discordjs\voice\dist\index.js:1242:16)
at VoiceUDPSocket.emit (node:events:512:28)
at VoiceUDPSocket.onMessage (C:\Users\Maxime\Documents\Programmation\_temp\DiscordGPT\node_modules\@discordjs\voice\dist\index.js:293:10)
at Socket.<anonymous> (C:\Users\Maxime\Documents\Programmation\_temp\DiscordGPT\node_modules\@discordjs\voice\dist\index.js:275:48)
at Socket.emit (node:events:512:28)
at UDP.onMessage [as onmessage] (node:dgram:933:8)
Emitted 'error' event on AudioReceiveStream instance at:
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) {
code: 'ERR_STREAM_PUSH_AFTER_EOF'
}
Could someone take a look at this please ? I don't think it is hard to fix, but I don't have enough knowledge to do it. I am sorry if I am wrong.
Looks like it's related to the subscribing to the user, not listening to 'finish' (this doesn't exist on Readable btw, it's "end") or destroying the connection
Which package is this bug report for?
voice
Issue description
When i susbcribe to the receiver, and add an event listener to the "finish" event of the opusStream, the bot crashes with the follow:
Code sample
Package version
@discordjs/voice@0.11.0
Node.js version
v16.17.1
Operating system
Ubuntu 20.04
Priority this issue should have
Low (slightly annoying)
Which partials do you have configured?
Not applicable (subpackage bug)
Which gateway intents are you subscribing to?
Guilds, GuildVoiceStates, GuildMessages, MessageContent
I have tested this issue on a development release
No response