Memory Leak

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 interactionCreate listeners added to [Client]. Use emitter.setMaxListeners() to increase limit I recently got this error, my bot only has 2 slash commands and 4 context menus, which are not used much, I already asked in the djs server and they said to go ask here instead
8 Replies
Lioness100
Lioness100•11mo ago
Could you show the stack trace?
-Carlos👑
-Carlos👑OP•11mo ago
I already rebooted the server so the errors were cleared, however it also displayed this: Error: Opening handshake has timed out
Lioness100
Lioness100•11mo ago
What's the stack trace for that
-Carlos👑
-Carlos👑OP•11mo ago
I already rebooted the server so the errors were cleared
Lioness100
Lioness100•11mo ago
Maybe you have too many awaitMessageComponent calls you didn't add a time property too for auto-clearing
-Carlos👑
-Carlos👑OP•11mo ago
none of my slashes or context menus uses that also i've been running slash commands and context menus for a while and I cannot replicate the error, could be a host issue?
Lioness100
Lioness100•11mo ago
I'm out of ideas without the code or the full error
-Carlos👑
-Carlos👑OP•11mo ago
if I ever get the error again I will create another post and if I remember correctly in the error there were a lot of Error: Opening handshake has timed out probably 10+
Want results from more Discord servers?
Add your server