Constantly receive Service Unavailable - 503 error when query calendarView/delta endpoint

Curtis Yip 0 Reputation points
2023-03-06T22:22:42.6966667+00:00

Some of our customer's accounts have never been able to query calendarView/delta endpoint, they receive the response below with "Service Unavailable - 503" error after about 2 minutes. Tested on both Graph Explorer and Postman, and same result. We also tried to set the sync windows for 1 day only but no luck. Hope we can get help here. Thanks.

Here is the response:

{
    "error": {
        "code": "UnknownError",
        "message": "",
        "innerError": {
            "date": "2023-03-06T20:39:19",
            "request-id": "0d366b61-ec8e-494c-aa4a-2977feb9f2db",
            "client-request-id": "f031b7ba-5a7d-daa6-e2a6-b4a4d458e772"
        }
    }
}
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-03-06T22:44:05.43+00:00

    Hello @Curtis Yip,

    Thanks for reaching out,

    Error 503 comes when 'The service is temporarily unavailable for maintenance or is overloaded. You may repeat the request after a delay, the length of which may be specified in a Retry-After header'. Refer this documentation. You can retry the requests or increasing the timeout (Incase you are using any custom application increase the timeout for at least 2 min).

    Another reason could be likely because the services are busy. You should employ a back-off strategy similar to 429. Additionally, you should always make new retry requests over a new HTTP connection. Refer this documentation.

    Hope this helps!

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


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.