Error streaming from IceCast server (Live Broadcast)

file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:1051
throw new Error("Cannot play a resource that has already ended.");
^

Error: Cannot play a resource that has already ended.
at AudioPlayer.play (file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:1051:13)
at attachRecorder (file:///home/syn/DungeonMaster/dist/commands/play.js:18:12)
at AudioPlayer.<anonymous> (file:///home/syn/DungeonMaster/dist/commands/play.js:13:9)
file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:1051
throw new Error("Cannot play a resource that has already ended.");
^

Error: Cannot play a resource that has already ended.
at AudioPlayer.play (file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:1051:13)
at attachRecorder (file:///home/syn/DungeonMaster/dist/commands/play.js:18:12)
at AudioPlayer.<anonymous> (file:///home/syn/DungeonMaster/dist/commands/play.js:13:9)
Im trying to play audio that is being streamed via IceCast and it plays for about a minute or so before it throws this error.
3 Replies
d.js toolkit
d.js toolkit15mo 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!
synysterzv
synysterzvOP15mo ago
No description
synysterzv
synysterzvOP15mo ago
Stack trace:
file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:1051
throw new Error("Cannot play a resource that has already ended.");
^

Error: Cannot play a resource that has already ended.
at AudioPlayer.play (file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:1051:13)
at attachRecorder (file:///home/syn/DungeonMaster/dist/commands/play.js:18:12)
at AudioPlayer.<anonymous> (file:///home/syn/DungeonMaster/dist/commands/play.js:13:9)
at AudioPlayer.emit (node:events:514:28)
at set state [as state] (file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:1028:10)
at AudioPlayer.checkPlayable (file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:1171:18)
at file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:73:60
at Array.filter (<anonymous>)
at audioCycleStep (file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:73:34)
at Timeout.<anonymous> (file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:84:45)
file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:1051
throw new Error("Cannot play a resource that has already ended.");
^

Error: Cannot play a resource that has already ended.
at AudioPlayer.play (file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:1051:13)
at attachRecorder (file:///home/syn/DungeonMaster/dist/commands/play.js:18:12)
at AudioPlayer.<anonymous> (file:///home/syn/DungeonMaster/dist/commands/play.js:13:9)
at AudioPlayer.emit (node:events:514:28)
at set state [as state] (file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:1028:10)
at AudioPlayer.checkPlayable (file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:1171:18)
at file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:73:60
at Array.filter (<anonymous>)
at audioCycleStep (file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:73:34)
at Timeout.<anonymous> (file:///home/syn/DungeonMaster/node_modules/@discordjs/voice/dist/index.mjs:84:45)
This max have been fixed by maxMissedFrames, ill have to do more testing
Want results from more Discord servers?
Add your server