Random disconnection
My WS Connection was closed randomly.
Debug logs are as follows:
I know this is normal, but this makes my shard go down. Can you tell me about some preventions for this?
Like if possible, can I make smth like which automatically respawns the shard?
7 Replies
• 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.It says it’s reconnecting
Are you calling
guild.members.fetch()
or updating presence often?Nope
I have nothing like that...
it stops, until restarted
Can it go like, If I add a
shardDisconnect
Event to all shards, and whenever one of them dies, I respawn the shard?
ok
Nope, I don't have any custom event
only what I have are of https, and they are not connected to shards
on this : https://discord.js.org/#/docs/main/stable/class/WebSocketShard ?
nope
I am new to sharding..... pls help me out, if there is somthing wrong :_
I have 1975 servers on my bot
on how.. I was following the guide
yes
ah my bad
😦
should updating to latest fix idea ?
Digital Ocean
on a VPS, over pm2
wait
lemmi cross check them
its just filled with all
buffer
warningsig I fount it....
Can you let me know, how much time it takes to reconnect a shard ?
ohk
Thanks for the help and info..