question

JSG-3345 avatar image
0 Votes"
JSG-3345 asked saldana-msft edited

Header "x-ms-throttle-limit-percentage" not coming in response

My application makes a lot of calls to the graph API to get the properties I need. It is impossible to reduce the number of requests in my case. And for this, I need to understand when the number of requests approaches the limit and that I need to stop doing them so as not to get 429)

The documentation says that the parameter "x-ms-throttle-limit-percentage" should come in the header when the number of requests approaches the limit from 0.8. As I understand it, 0.8 is a coefficient from 1, where 1 is the upper limit of the limit: https://docs.microsoft.com/en-us/graph/throttling?view=graph-rest-1.0#regular-responses-requests

But I didn’t get this parameter in the header, although Retry-After with TooManyRequests.

How can I get this parameter in the response? Perhaps you need to specify additional parameters for this? Or set up Tenant for this?

Or is there another way to view throttle-limit?

Thanks in advance for your reply)

microsoft-graph-usersmicrosoft-graph-throttling
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JSG-3345

I noticed the documentation description: returned only when the application consumed more than 0.8 of its limit.

So is your application consumed more than 0.8 of its limit?

0 Votes 0 ·

Yes, I believe that it is, because I get a Retry-After response, which indicates that the application has consumed all requests for this type of requests

0 Votes 0 ·

0 Answers