AudioPlayerError: aborted

Hello, after one minute (exactly) of playing a music in a vocal, i got the following error :
node:events:491
throw er; // Unhandled 'error' event
^

AudioPlayerError: aborted
at connResetException (node:internal/errors:704:14)
at TLSSocket.socketCloseListener (node:_http_client:441:19)
at TLSSocket.emit (node:events:525:35)
at node:net:757:14
at TCP.done (node:_tls_wrap:584:7)
Emitted 'error' event on AudioPlayer instance at:
at OggDemuxer.onStreamError
node:events:491
throw er; // Unhandled 'error' event
^

AudioPlayerError: aborted
at connResetException (node:internal/errors:704:14)
at TLSSocket.socketCloseListener (node:_http_client:441:19)
at TLSSocket.emit (node:events:525:35)
at node:net:757:14
at TCP.done (node:_tls_wrap:584:7)
Emitted 'error' event on AudioPlayer instance at:
at OggDemuxer.onStreamError
my code to launch music :
let stream = ytdl(maZic, {
filter: "audioonly",
quality: 'highestaudio',
seek: 0
});
const player = createAudioPlayer();
const resource = createAudioResource(stream);

const connection = joinVoiceChannel({
channelId: vc.id,
guildId: vc.guild.id,
adapterCreator: vc.guild.voiceAdapterCreator,
})
player.play(resource);
connection.subscribe(player);
let stream = ytdl(maZic, {
filter: "audioonly",
quality: 'highestaudio',
seek: 0
});
const player = createAudioPlayer();
const resource = createAudioResource(stream);

const connection = joinVoiceChannel({
channelId: vc.id,
guildId: vc.guild.id,
adapterCreator: vc.guild.voiceAdapterCreator,
})
player.play(resource);
connection.subscribe(player);
7 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Hugo4774
Hugo4774OP2y ago
$ node -v v16.17.0 $ npm list discord.js └── [email protected]
SpecialSauce
SpecialSauce2y ago
Probably related to a known issue.
GitHub
GitHub2y ago
<:issue_open:852714230280486942> #9185 in discordjs/discord.js by Theiremi opened <t:1677701129:R> VoiceConnection stuck in signalling state about a minute after creating it
SpecialSauce
SpecialSauce2y ago
Waiting for the fix to be released.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
SpecialSauce
SpecialSauce2y ago
Try updating to the newest version of discord/voice (released today)
Want results from more Discord servers?
Add your server