CorwinDev/Discord-Bot

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

RennieSs opened this issue · 2 comments

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'
}

What is the problem, and how do i fix it?

I tried to port it to an other hosting, but it just messed it up. Replit is really bad :/