question

Monty123-5084 avatar image
0 Votes"
Monty123-5084 asked Monty123-5084 commented

Occasional 412 errors when listing calendars using Microsoft Graph API

I'm making GET requests to the following endpoint:

https://graph.microsoft.com/v1.0/me/calendars

Roughly 3.5% of these calls fail with a 412 error code. The same call will succeed a few minutes later. There does not seem to be any pattern to the failures.

Is this a recognized problem? Is there a solution other than ignoring the 412s and trying again later?

microsoft-graph-sdkmicrosoft-graph-calendar
· 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.

HTTP 412 means that precondition failed; in other words, a precondition provided in the request (such as an if-match header) does not match the resource's current state.

  • Hows your API call look like?

  • Do you use any precondition with it?

  • Outside of your code, can you repro the issue with POSTMAN/Microsoft Graph Explorer as well?

  • Share the detailed error response (with requestid, timestamp) that you received.

0 Votes 0 ·

Full request:

GET https://graph.microsoft.com/v1.0/me/calendars

No payload or query string parameters, and no precondition.

Full response:

412 {'error': {'code': 'ErrorIrresolvableConflict', 'message': 'The send or update operation could not be performed because the change key passed in the request does not match the current change key for the item.'}}

Don't have time to reproduce due to its transient nature.

0 Votes 0 ·

0 Answers