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
4 Replies
d.js toolkit
d.js toolkit5mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - 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! - Marked as resolved by OP
aris
arisOP5mo ago
djs: 14.5.3 node: 22.5.1 *i have no resolution overrides at all for any dependency An extension of the worker strategy I believe not I am not allowed to, all it does is manually specify workerPath It was a pedantic request from the owner This only happens on shard resume Which is handled by mainlib I am aware I patched the packet handler on pnpm n it seems to be fine No I only did this after this error came up It does have session data After the patch That error is before the patch And this behavior is after the patch The resumed event on mainlib I think Let me check If sequence is missing from the object I replace it with a +1
aris
arisOP5mo ago
is its presence crucial for functionality? oh, i figured out the issue thank you for your efforts
Want results from more Discord servers?
Add your server