PrismarineJS / prismarine-chat

A parser for a minecraft chat message
MIT License
34 stars 21 forks source link

RangeError: Maximum call stack size exceeded #112

Closed Yaodeowo closed 2 months ago

Yaodeowo commented 2 months ago

C:\Users\admin\Desktop\Bot\NBot\node_modules\prismarine-chat\index.js:481 const json = JSON.stringify(simplified, (key, val) => { ^

RangeError: Maximum call stack size exceeded at JSON.stringify () at processNbtMessage (C:\Users\admin\Desktop\Bot\NBot\node_modules\prismarine-chat\index.js:481: 21) at processMessage (C:\Users\admin\Desktop\Bot\NBot\node_modules\minecraft-protocol\src\client\ch at.js:32:90) at Client. (C:\Users\admin\Desktop\Bot\NBot\node_modules\minecraft-protocol\src\clien t\chat.js:167:25) at Client.emit (node:events:514:28) at emitPacket (C:\Users\admin\Desktop\Bot\NBot\node_modules\minecraft-protocol\src\client.js:83: 12) at FullPacketParser. (C:\Users\admin\Desktop\Bot\NBot\node_modules\minecraft-protocol \src\client.js:112:9) at FullPacketParser.emit (node:events:514:28) at addChunk (C:\Users\admin\Desktop\Bot\NBot\node_modules\protodef\node_modules\readable-stream\ lib_stream_readable.js:279:12) at readableAddChunk (C:\Users\admin\Desktop\Bot\NBot\node_modules\protodef\node_modules\readable -stream\lib_stream_readable.js:262:11)

Node.js v18.17.1

extremeheat commented 2 months ago

No more information ?

Yaodeowo commented 2 months ago

nvm, i use try catch