FATAL ERROR ErrorThrowAsJavaScriptException napi_throw

Why is this happening and how can I stop it from happening? Error:
01:20:57: FATAL ERROR: Error::ThrowAsJavaScriptException napi_throw
01:20:57: 1: 0xb02ec0 node::Abort() [node /home/dzlandis/bot/index.js]
01:20:57: 2: 0xa181fb node::FatalError(char const*, char const*) [node /home/dzlandis/bot/index.js]
01:20:57: 3: 0xa18204 [node /home/dzlandis/bot/index.js]
01:20:57: 4: 0xaca77b napi_fatal_error [node /home/dzlandis/bot/index.js]
01:20:57: 5: 0x7f6894e7dc9e [/home/dzlandis/bot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.31/opus.node]
01:20:57: 6: 0x7f6894e7e3fc Napi::Error::ThrowAsJavaScriptException() const [/home/dzlandis/bot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.31/opus.node]
01:20:57: 7: 0x7f6894e8adeb OpusEncoder::Decode(Napi::CallbackInfo const&) [/home/dzlandis/bot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.31/opus.node]
01:20:57: 8: 0x7f6894e81aba Napi::InstanceWrap<OpusEncoder>::InstanceMethodCallbackWrapper(napi_env__*, napi_callback_info__*) [/home/dzlandis/bot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.31/opus.node]
01:20:57: 9: 0xaadf9d [node /home/dzlandis/bot/index.js]
01:20:57: 10: 0x157c42c [node /home/dzlandis/bot/index.js]
01:20:57: FATAL ERROR: Error::ThrowAsJavaScriptException napi_throw
01:20:57: 1: 0xb02ec0 node::Abort() [node /home/dzlandis/bot/index.js]
01:20:57: 2: 0xa181fb node::FatalError(char const*, char const*) [node /home/dzlandis/bot/index.js]
01:20:57: 3: 0xa18204 [node /home/dzlandis/bot/index.js]
01:20:57: 4: 0xaca77b napi_fatal_error [node /home/dzlandis/bot/index.js]
01:20:57: 5: 0x7f6894e7dc9e [/home/dzlandis/bot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.31/opus.node]
01:20:57: 6: 0x7f6894e7e3fc Napi::Error::ThrowAsJavaScriptException() const [/home/dzlandis/bot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.31/opus.node]
01:20:57: 7: 0x7f6894e8adeb OpusEncoder::Decode(Napi::CallbackInfo const&) [/home/dzlandis/bot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.31/opus.node]
01:20:57: 8: 0x7f6894e81aba Napi::InstanceWrap<OpusEncoder>::InstanceMethodCallbackWrapper(napi_env__*, napi_callback_info__*) [/home/dzlandis/bot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.31/opus.node]
01:20:57: 9: 0xaadf9d [node /home/dzlandis/bot/index.js]
01:20:57: 10: 0x157c42c [node /home/dzlandis/bot/index.js]
Node Version: v16.13.0 Core Dependencies: @discordjs/voice: 0.10.0-dev prism-media: 1.3.2 Opus Libraries @discordjs/opus: 0.5.3 opusscript: not found Encryption Libraries sodium-native: 3.3.0 sodium: not found libsodium-wrappers: not found tweetnacl: not found FFmpeg version: 4.4.1-static https://johnvansickle.com/ffmpeg/ libopus: yes Note: I am using voice receiving features.
2 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
dzlandis
dzlandisOP3y ago
Additionally, I'm using Discord.js v13.8.0 Alright, thanks doglike
Want results from more Discord servers?
Add your server