Open jogramming opened 2 years ago
Assigning to self.
I'm having a similar issue, this might be related to #1047 and #600
[dependencies]
twilight-http = { branch = "fix-http-ratelimiting-started-at", git = "https://github.com/zeylahellyer/twilight" }
twilight-model = { branch = "fix-http-ratelimiting-started-at", git = "https://github.com/zeylahellyer/twilight" }
this is still triggering an error for me and looking back at the releases it seems like the fix was reverted (#1357)
re-opening so this doesn't get lost
After spending some time debugging why i was getting 429's on stuff that i really shouldn't be getting it on i managed to boil it down to a bug in twilight's ratelimit handling and make a pretty simple reproducible case.
The below code will cause a ratelimit error:
1 request in that join should have been delayed, but somehow slipped past twilight's ratelimit handling.
I suspect it has something to do with the order of checks, how you wait for ratelimits before popping things off the queue but im not knowledgeable enough about twilight's internals to be sure.