Hello, I was redirected here by @elder charm after posting in the discord api server.
I'm using twilight_http with the InMemoryRatelimter, but I keep getting hit with 429's which I'd like to avoid. This is on the /users/{user.id} endpoint, and I'm just using it to fetch known valid users.
To try and avoid this, I've tried:
- resyncing my clock
- making sure nothing else is using the same discord token.
# TYPE discord_api_requests counter
discord_api_requests{status="200"} 3229
discord_api_requests{status="429"} 839
(metrics from my backend, showing the response code counts)
Is there a better option than just retrying when I hit a 429? I'd really like to avoid them in the first place.
n.b. I can share my source code if helpful, but its basically just calling Client::user a bunch, concurrently