Nikki ๐ŸŒบ
Nikki ๐ŸŒบ
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
so if anyone comes across this error, just remove the "@discordjs/ws": "dev" override in your package.json
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
I'll go ahead and mark this as solved because of what didinele said on the github issue:
Yes, we merged a pull request into /ws that changes how we do events entirely. What you're experiencing here is discord.js not being updated to handle that (on purpose at this time), there isn't actually a bug.

Feel free to re-open if you can reproduce without the dev version of ws being used.
Yes, we merged a pull request into /ws that changes how we do events entirely. What you're experiencing here is discord.js not being updated to handle that (on purpose at this time), there isn't actually a bug.

Feel free to re-open if you can reproduce without the dev version of ws being used.
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
I just cloned the repo as is, installed the packages and then tried multiple ways to start the bot
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
I also want to add that this is the third device that I have run this code on and gotten the exact same issue
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
I also added the warn and debug events to see if there might be an issue with discord but the only thing it logs is this:
[22:07:23.422] DEBUG (25788): Provided token: ** censored **
[22:07:23.423] DEBUG (25788): Preparing to connect to the gateway...
[22:07:23.650] DEBUG (25788): [WS => Manager] Fetched Gateway Information
URL: wss://gateway.discord.gg
Recommended Shards: 1
[22:07:23.650] DEBUG (25788): [WS => Manager] Session Limit Information
Total: 1000
Remaining: 996
[22:07:23.651] DEBUG (25788): [WS => Manager]
[22:07:23.652] DEBUG (25788): [WS => Manager]
[22:07:23.422] DEBUG (25788): Provided token: ** censored **
[22:07:23.423] DEBUG (25788): Preparing to connect to the gateway...
[22:07:23.650] DEBUG (25788): [WS => Manager] Fetched Gateway Information
URL: wss://gateway.discord.gg
Recommended Shards: 1
[22:07:23.650] DEBUG (25788): [WS => Manager] Session Limit Information
Total: 1000
Remaining: 996
[22:07:23.651] DEBUG (25788): [WS => Manager]
[22:07:23.652] DEBUG (25788): [WS => Manager]
and then the error right after that..
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
Printing this.shards results in this:
<ref *1> Collection(1) [Map] {
0 => WebSocketShard {
_events: [Object: null prototype] { allReady: [Function (anonymous)] },
_eventsCount: 1,
_maxListeners: undefined,
manager: WebSocketManager {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
gateway: 'wss://gateway.discord.gg/',
shards: [Circular *1],
status: 3,
destroyed: false,
_ws: [WebSocketManager],
totalShards: 1,
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
},
id: 0,
status: 1,
closeSequence: 0,
ping: -1,
lastPingTimestamp: -1,
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
}
}
<ref *1> Collection(1) [Map] {
0 => WebSocketShard {
_events: [Object: null prototype] { allReady: [Function (anonymous)] },
_eventsCount: 1,
_maxListeners: undefined,
manager: WebSocketManager {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
gateway: 'wss://gateway.discord.gg/',
shards: [Circular *1],
status: 3,
destroyed: false,
_ws: [WebSocketManager],
totalShards: 1,
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
},
id: 0,
status: 1,
closeSequence: 0,
ping: -1,
lastPingTimestamp: -1,
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
}
}
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
(just want to add that this is also no issue with bun, I tried others)
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
Running the bot without any kind of sharding results in the exact same error
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
No description
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
No, i did not receive that error I was running a dev bot thatโ€™s only in one guild
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
I still get the same error, it doesnโ€™t matter if i use the sharding manager or not
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
I said that commenting it out didnโ€™t work either
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
I can't reproduce it, just showed up a few times yesterday and then it doesn't work for a while. But when it happened I commented out anything related to the Sharding Manager in my client class and started the bot file directly (not the sharding manager file) and got the same error again it just goes away after waiting for maybe around 20-30 minutes
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
I'm just very confused by the inconsistency of this issue sometimes it works and sometimes it doesn't
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
I can't log anything while it's fine right now, I can do that if it happens again though
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
Odd that I got the same error without using the third party sharding manager then
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
No description
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
Yeah, chrissy said two different things and put an OR between them he was just assuming what could have gone wrong there I don't think they logged anything, just told me to do that but I was unable to at the time
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
but right now it's working again locally and on the host
37 replies
DIAdiscord.js - Imagine an app
Created by Nikki ๐ŸŒบ on 7/25/2024 in #djs-questions
Random shard sessionInfo errors
No, it also did the same when I started the bot without the ShardingManager
37 replies