Unhandled promise rejection: Error: getaddrinfo EAI_AGAIN gateway.discord.gg

Hi! My bot have been woking as it should for abt a week, but yesterday night, my bot keeps turning off by itself. It is coded in replit, and hosted on uptimerobot. But now i get this error when i start up my bot
Unhandled promise rejection: Error: getaddrinfo EAI_AGAIN gateway.discord.gg
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:82:26) {
errno: -3001,
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'gateway.discord.gg'
}
Unhandled promise rejection: Error: getaddrinfo EAI_AGAIN gateway.discord.gg
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:82:26) {
errno: -3001,
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'gateway.discord.gg'
}
What is the problem, and how do i fix it?
1 Reply
d.js toolkit
d.js toolkit11mo 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
Want results from more Discord servers?
Add your server