Hello JIJIL PK,
Thank you for contacting Microsoft Support!
It sounds like you’re encountering a throttling issue with the Microsoft Graph API, specifically the HTTP 429 error code, which indicates “Too Many Requests.” This error can occur even if other requests are working fine, as throttling can be specific to certain endpoints or resources.
Here are some steps you can take to resolve this issue:
- Check Retry-After Header: When you receive a 429 error, the response usually includes a
Retry-After
header, which indicates how long you should wait before making another request. - Reduce Request Frequency: Try to reduce the frequency of your requests. This can help avoid hitting the throttling limits.
- Implement Exponential Backoff: If you encounter a 429 error, implement an exponential backoff strategy. This means you wait for an increasing amount of time before retrying the request. For example, wait 1 second, then 2 seconds, then 4 seconds, and so on.
Please refer throttling guidance documentation.
If the issue persists despite these measures, it might be helpful to review the specific throttling limits for the services you’re accessing through Microsoft Graph. Each service can have its own limits, and understanding these can help you better manage your requests.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.