#Sudden rate limit on the gateway

23 messages · Page 1 of 1 (latest)

iron shore

My discord bot (20 shards) suddenly stopped receiving events earlier today. As a possible remedy I tried rebooting the entire process but it suddenly stopped coming online after that.

I narrowed the issue down to a rate limit from the gateway, however I have absolutely no idea how I hit that. As far as I am aware the shards weren't crashing actively causing a reconnect.

Any ideas?

distant slateBOT
hot nacelle

If the internet goes out for too long, Discord may force you to reidentify

Consuming that particular rate limit

iron shore

Internet of the host?

hot nacelle

Yea

iron shore

Strange, still a huge timeout from Discord their end which is annoying

hot nacelle

1000 identifies / 24 hrs would give you 50 times if the internet goes out per day

iron shore

That sounds unlikely but possible I guess

hot nacelle

Ig it could also be technically possible if the bot gets stuck on a sync task for too long

You'd prob notice from spikes in response times tho

iron shore

Ok well time-out expired now finally

hot nacelle

You could start off by tracking when a shard reconnects

oblique sapphireBOT
iron shore

Alright Thanks

oblique sapphireBOT
hot nacelle

Np

Feel free to send an update here if you get more info

iron shore

👍

iron shore

Just hit the rate limit again, Altough I think its Cloudflare or something not discord as every endpoint is blocked? I did notice a lot of rate limited requests to fetch messages, though I assumed djs would properly handle that?

This has never and I mean never occurred before, today it just suddenly started happening

iron shore

Ok I was fetching partials from the api which was unneeded and caused a lot of overhead and unneeded requests, ive disabled partials for now, hopefully that adresses the ratelimit issue

sinful ice

got similar issues today on archaic 13.16...