MagisterJS icon indicating copy to clipboard operation
MagisterJS copied to clipboard

Ratelimiting 'support'

Open lieuwex opened this issue 10 years ago • 3 comments

Magister has added rate limiting a little while ago, and we currently just straight up ignore it. When ratelimited Magister sends an object like: {"Message":"Rate limit reached. Reset in 25 seconds.","SecondsLeft":25}.

I was thinking about when we get an object with a SecondsLeft field we delay every set request and repeat the current one (where we get the error from) after the value of SecondsLeft. For this we need to wrap the HTTP object (as said in #29).

lieuwex avatar Nov 30 '15 19:11 lieuwex

Yay for straight-up ignoring

tomsmeding avatar May 23 '16 07:05 tomsmeding

That tactic hasn't been really working for us to be honest

lieuwex avatar May 23 '16 08:05 lieuwex

I think this is done on the v2 branch, still have to test it, though

lieuwex avatar Jul 26 '16 17:07 lieuwex