RangeError: offset is out of bounds [@discordjs/opus]

Gathering a RangeError when attempting to play a shoutcast live stream [AUDIO ONLY], the bot has been playing stations like a charm for the past 7 months with no issue and recently arised, not sure what happened and even checked via ffmpeg stats and attempted to see the connection but it looks the same, 48000hz. Looks like its for buffering although not sure what the functionality behind it does at all in order to attempt to manually fix it.
[ UNCAUGHT EXCEPTION ] → RangeError: offset is out of bounds
at Uint16Array.set (<anonymous>)
at OpusScript.encode (C:\Users\Administrator.WIN-RQ8CU7CCRJU\Documents\iheartbot-14-new\iheartbot-14-new\node_modules\opusscript\index.js:67:16)
at Encoder._encode (C:\Users\Administrator.WIN-RQ8CU7CCRJU\Documents\iheartbot-14-new\iheartbot-14-new\node_modules\prism-media\src\opus\Opus.js:60:25)
at Encoder._transform (C:\Users\Administrator.WIN-RQ8CU7CCRJU\Documents\iheartbot-14-new\iheartbot-14-new\node_modules\prism-media\src\opus\Opus.js:157:24)
at Transform._write (node:internal/streams/transform:171:8)
at writeOrBuffer (node:internal/streams/writable:570:12)
at _write (node:internal/streams/writable:499:10)
at Writable.write (node:internal/streams/writable:508:10)
at VolumeTransformer.ondata (node:internal/streams/readable:1007:22)
at VolumeTransformer.emit (node:events:507:28)
[ UNCAUGHT EXCEPTION ] → RangeError: offset is out of bounds
at Uint16Array.set (<anonymous>)
at OpusScript.encode (C:\Users\Administrator.WIN-RQ8CU7CCRJU\Documents\iheartbot-14-new\iheartbot-14-new\node_modules\opusscript\index.js:67:16)
at Encoder._encode (C:\Users\Administrator.WIN-RQ8CU7CCRJU\Documents\iheartbot-14-new\iheartbot-14-new\node_modules\prism-media\src\opus\Opus.js:60:25)
at Encoder._transform (C:\Users\Administrator.WIN-RQ8CU7CCRJU\Documents\iheartbot-14-new\iheartbot-14-new\node_modules\prism-media\src\opus\Opus.js:157:24)
at Transform._write (node:internal/streams/transform:171:8)
at writeOrBuffer (node:internal/streams/writable:570:12)
at _write (node:internal/streams/writable:499:10)
at Writable.write (node:internal/streams/writable:508:10)
at VolumeTransformer.ondata (node:internal/streams/readable:1007:22)
at VolumeTransformer.emit (node:events:507:28)
https://gist.github.com/iiTxicz/81f6c628b4e79c3db54f00388401a70b - code
Gist
iheart.cmd.js
GitHub Gist: instantly share code, notes, and snippets.
No description
9 Replies
d.js toolkit
d.js toolkit5d ago
- What are your intents? GuildVoiceStates is required to receive voice data! - Show what dependencies you are using -- generateDependencyReport() is exported from @discordjs/voice. - Try looking at common examples: https://github.com/discordjs/voice-examples. - 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!
WhiteGarfield
WhiteGarfield3d ago
What dependencies you are using?
jackasu
jackasuOP2d ago
No description
jackasu
jackasuOP2d ago
mb for the late reply
WhiteGarfield
WhiteGarfield2d ago
thats a odd version of ffmpeg. could you provide the github from this dependencie?
jackasu
jackasuOP2d ago
lemme see if i can get that version i installed it a while back via windows installation
WhiteGarfield
WhiteGarfield2d ago
ok.

Did you find this page helpful?