Api: Throttling does not populate ThrottleSeconds

Created on 2 Oct 2019  路  6Comments  路  Source: Bungie-net/api

Screen Shot 2019-10-01 at 8 37 13 PM

I'd like DIM to be a good citizen and back off requests by the amount set in ThrottleSeconds when the API responds that we're throttled. Unfortunately this property always seems to be 0.

bug bug filed investigation ready for release

Most helpful comment

Does that maybe mean 0 is "come back later, I don't know when"?

All 6 comments

I think it鈥檚 because it鈥檚 a fake throttle as the API for third parties is just off rn

Does that maybe mean 0 is "come back later, I don't know when"?

I dont think ive ever seen it not be 0. Pretty sure 0 means not throttled (at least in that way).

I'll check on this - we do have some new throttles that we can apply in emergency situations, and last week was certainly a time where we turned them on... I'll check out if those throttles aren't setting that response property as they ought to.

TFS 838483

This issue has been fixed in the following ways:

  • ThrottleSeconds will now be populated with an integer value of how many seconds you should wait to clear your particular throttle value. This will almost always be 10 seconds in the current runtime config, as if you're getting throttled we're going to make you wait a full "cycle" for the request counters to clear. Applies to ErrorCodes PerApplicationThrottleExceeded, PerApplicationAuthenticatedThrottleExceeded, PerEndpointRequestThrottleExceeded,PerUserThrottleExceeded, and PerApplicationAnonymousThrottleExceeded. I also added a value called MaximumRequestsPerSecond that will indicate the approximate rate that will get you throttled to the exceptions MessageData dictionary. These changes will go live sometime in the beginning of March.
Was this page helpful?
0 / 5 - 0 ratings