aris
DIAdiscord.js - Imagine an app
•Created by aris on 7/26/2024 in #djs-questions
Random shutdowns due to sessionInfo being null
/nova/node_modules/.pnpm/discord.js@14.15.3_bufferutil@4.0.8/node_modules/discord.js/src/client/websocket/handlers/RESUMED.js:6
2024-07-26T21:20:46.348970429Z const replayed = shard.sessionInfo.sequence - shard.closeSequence;
2024-07-26T21:20:46.348991867Z ^
2024-07-26T21:20:46.349006540Z
2024-07-26T21:20:46.349021077Z TypeError: Cannot read properties of null (reading 'sequence')
2024-07-26T21:20:46.349035112Z at module.exports [as RESUMED] (/nova/node_modules/.pnpm/discord.js@14.15.3_bufferutil@4.0.8/node_modules/discord.js/src/client/websocket/handlers/RESUMED.js:6:38)
2024-07-26T21:20:46.349106501Z at WebSocketManager.handlePacket (/nova/node_modules/.pnpm/discord.js@14.15.3_bufferutil@4.0.8/node_modules/discord.js/src/client/websocket/WebSocketManager.js:355:31)
2024-07-26T21:20:46.349126391Z at WebSocketManager.<anonymous> (/nova/node_modules/.pnpm/discord.js@14.15.3_bufferutil@4.0.8/node_modules/discord.js/src/client/websocket/WebSocketManager.js:239:12)
2024-07-26T21:20:46.349142713Z at WebSocketManager.emit (/nova/node_modules/.pnpm/@vladfrangu+async_event_emitter@2.4.4/node_modules/@vladfrangu/async_event_emitter/src/index.ts:508:28)
2024-07-26T21:20:46.349157516Z at LumiWorkerStrategy.onMessage (/nova/node_modules/.pnpm/@discordjs+ws@1.1.1_bufferutil@4.0.8/node_modules/@discordjs/ws/src/strategies/sharding/WorkerShardingStrategy.ts:296:18)
2024-07-26T21:20:46.349171900Z at Worker.<anonymous> (/nova/node_modules/.pnpm/@discordjs+ws@1.1.1_bufferutil@4.0.8/node_modules/@discordjs/ws/src/strategies/sharding/WorkerShardingStrategy.ts:234:17)
2024-07-26T21:20:46.349187167Z at Worker.emit (node:events:520:28)
2024-07-26T21:20:46.349201254Z at MessagePort.<anonymous> (node:internal/worker:267:53)
2024-07-26T21:20:46.349215684Z at [nodejs.internal.kHybridDispatch] (node:internal/event_target:816:20)
2024-07-26T21:20:46.349230010Z at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
2024-07-26T21:20:46.349266983Z
2024-07-26T21:20:46.349284055Z Node.js v22.5.1
/nova/node_modules/.pnpm/discord.js@14.15.3_bufferutil@4.0.8/node_modules/discord.js/src/client/websocket/handlers/RESUMED.js:6
2024-07-26T21:20:46.348970429Z const replayed = shard.sessionInfo.sequence - shard.closeSequence;
2024-07-26T21:20:46.348991867Z ^
2024-07-26T21:20:46.349006540Z
2024-07-26T21:20:46.349021077Z TypeError: Cannot read properties of null (reading 'sequence')
2024-07-26T21:20:46.349035112Z at module.exports [as RESUMED] (/nova/node_modules/.pnpm/discord.js@14.15.3_bufferutil@4.0.8/node_modules/discord.js/src/client/websocket/handlers/RESUMED.js:6:38)
2024-07-26T21:20:46.349106501Z at WebSocketManager.handlePacket (/nova/node_modules/.pnpm/discord.js@14.15.3_bufferutil@4.0.8/node_modules/discord.js/src/client/websocket/WebSocketManager.js:355:31)
2024-07-26T21:20:46.349126391Z at WebSocketManager.<anonymous> (/nova/node_modules/.pnpm/discord.js@14.15.3_bufferutil@4.0.8/node_modules/discord.js/src/client/websocket/WebSocketManager.js:239:12)
2024-07-26T21:20:46.349142713Z at WebSocketManager.emit (/nova/node_modules/.pnpm/@vladfrangu+async_event_emitter@2.4.4/node_modules/@vladfrangu/async_event_emitter/src/index.ts:508:28)
2024-07-26T21:20:46.349157516Z at LumiWorkerStrategy.onMessage (/nova/node_modules/.pnpm/@discordjs+ws@1.1.1_bufferutil@4.0.8/node_modules/@discordjs/ws/src/strategies/sharding/WorkerShardingStrategy.ts:296:18)
2024-07-26T21:20:46.349171900Z at Worker.<anonymous> (/nova/node_modules/.pnpm/@discordjs+ws@1.1.1_bufferutil@4.0.8/node_modules/@discordjs/ws/src/strategies/sharding/WorkerShardingStrategy.ts:234:17)
2024-07-26T21:20:46.349187167Z at Worker.emit (node:events:520:28)
2024-07-26T21:20:46.349201254Z at MessagePort.<anonymous> (node:internal/worker:267:53)
2024-07-26T21:20:46.349215684Z at [nodejs.internal.kHybridDispatch] (node:internal/event_target:816:20)
2024-07-26T21:20:46.349230010Z at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
2024-07-26T21:20:46.349266983Z
2024-07-26T21:20:46.349284055Z Node.js v22.5.1
24 replies
DIAdiscord.js - Imagine an app
•Created by aris on 7/18/2022 in #djs-questions
Maximum call stack size exceeded
[ERROR] RangeError: Maximum call stack size exceeded
at flatten (/home/ container/node
_modules/discord.js/src/util/Util.js
:17:17)
at /home/container/node_modules/
discord.js/src/util/Util.js:42:86
at Array.map (<anonymous>)
at flatten (/home/container/node
modules/discord.js/src/util/Util.js
:42:61)
at flatten (/home/container/node
modules/discord.js/src/util/Util.js
:48:58)
at Rosa.toJSON (/home/container/node_modules/discord.js/src/client/BaseClient.js:66: 12)
at Rosa.toJSON (/home/container/node_modules/discord.js/src/client/Client.js:456:18)
at flatten (/home/container/node
modules/discord.js/src/util/Util.js
:46:48)
at flatten (/home/container/node_modules/discord.js/src/util/Util.js
:48:58)
at Rosa.toJSON (/home/container/node_modules/discord.js/src/client/Baseclient.js:66:12)
[ERROR] RangeError: Maximum call stack size exceeded
at flatten (/home/ container/node
_modules/discord.js/src/util/Util.js
:17:17)
at /home/container/node_modules/
discord.js/src/util/Util.js:42:86
at Array.map (<anonymous>)
at flatten (/home/container/node
modules/discord.js/src/util/Util.js
:42:61)
at flatten (/home/container/node
modules/discord.js/src/util/Util.js
:48:58)
at Rosa.toJSON (/home/container/node_modules/discord.js/src/client/BaseClient.js:66: 12)
at Rosa.toJSON (/home/container/node_modules/discord.js/src/client/Client.js:456:18)
at flatten (/home/container/node
modules/discord.js/src/util/Util.js
:46:48)
at flatten (/home/container/node_modules/discord.js/src/util/Util.js
:48:58)
at Rosa.toJSON (/home/container/node_modules/discord.js/src/client/Baseclient.js:66:12)
13 replies