DiscordAPIError (Discord banned Glitch IPs?)


Im getting this error:

at item.request.gen.end (/rbd/pnpm-volume/4d42fe1d-26cb-43dc-934f-47f7c781e273/node_modules/.registry.npmjs.org/discord.js/11.3.2/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:71:65)

at then (/rbd/pnpm-volume/4d42fe1d-26cb-43dc-934f-47f7c781e273/node_modules/.registry.npmjs.org/snekfetch/3.6.4/node_modules/snekfetch/src/index.js:215:21)

at <anonymous>

at process._tickCallback (internal/process/next_tick.js:188:7)

I asked in discord.js server and this was dev’s answer:
Discord api banned some (or maybe all) ips glitch has.


Two of my four bots hosted on Glitch are working, the others have this error.


a current fix for this is to make a new project and move everything


It looks like some IP addresses may have been banned recently, certainly not all, due to problematic bots. Unfortunately this can impact other bots which weren’t doing anything incorrect. If you let us know the name of the projects then we can review and move those like that for you.

It would also be useful to see the full error you’re getting. In prior reports the error seen due to a banned IP address was like

DiscordHTTPError: 403 Forbidden on GET /api/v7/gateway

Discord Music Bot
Discord API error, the newly generated token is not working

It is also possible to use some sort of VPN feature, or instead of trying to use discord.js you can clone the repo and modify the URLs to a proxy bypass service, I can’t remember the name of the one that I used back in the days to send PUT requests. :expressionless: I’ll send it here if I remember out of the blue.


See One of the Glitch IPs is banned by Discord

You may be able to use another IP in another existing app.


Thanks everyone.
I moved the database to another project and everything is working fine.