MS Graph API throws 502 Unkown Error from time to time

Attila Herczog 1 Reputation point
2022-06-21T13:24:03.063+00:00

An http request that had worked yesterday stopped working for a few hours and threw either 502 or 503. Since then, the exact same requests started working again, but I'm afraid that this will happen in the future. My question would be: Is there any way to debug what caused the unkown error? How can I be sure that this issue won't be repeated in the future?

I can't reproduce the error now, but I was using the /users/{userID}/messages/ endpoint.

Thank you in advance!

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

2 answers

Sort by: Most helpful
  1. Micca 156 Reputation points
    2022-06-21T13:55:21.143+00:00

    Hi

    have you noticed the Admin Portal message center notification MF394386 ?

    https://admin.microsoft.com/adminportal/home#/servicehealth?message=MF394386

    0 comments No comments

  2. Srinivasa Rao Darna 6,696 Reputation points Microsoft Vendor
    2022-06-21T14:37:18.63+00:00

    Hi @Attila Herczog ,

    There is a health bulletin released by Microsoft for the affected tenants, Users may encounter delays and experience failures when accessing some M365 services includes Microsoft Graph API.

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".