Issue fetching image for Teams channel using GraphAPI image path

JIJIL PK 0 Reputation points
2024-08-29T17:09:14.09+00:00

I am trying to fetch image details using the path under <img /> src GraphAPI URL, but I am getting an error response code of 429. Even after waiting for a couple of hours, the issue persists. This error occurs only for certain image paths and not for others. I initially thought it was due to throttling for the image API overall, but since I can fetch details from the API for different image paths at the same time, this cannot be the case. How do I resolve this issue?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,879 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hitesh Pachipulusu - MSFT 1,340 Reputation points Microsoft Vendor
    2024-08-30T06:53:48.14+00:00

    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:

    1. 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.
    2. Reduce Request Frequency: Try to reduce the frequency of your requests. This can help avoid hitting the throttling limits.
    3. 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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.