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)


https://gist.github.com/iiTxicz/81f6c628b4e79c3db54f00388401a70b - code
image.png
Gist
GitHub Gist: instantly share code, notes, and snippets.
iheart.cmd.js
Was this page helpful?