Graph API timeouts

Krasa 36 Reputation points

It happened to me multiple times, that when I do a moderate number of requests (in a single thread), then sometimes Graph API timeouts, randomly on any call (even after 30 seconds).


GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 10012 milliseconds with 0 bytes received (see for

Not sure where is the problem, it happened on the AWS, and on my local PC, so I would expect the problem to be with Microsoft servers.
No idea where to report it or what to do.

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

1 answer

Sort by: Most helpful
  1. Vicky Kumar (Mindtree Consulting PVT LTD) 1,156 Reputation points Microsoft Employee

    The access token has certain timeout time, but we can still customize the lifetime of the access token by configuring the token lifetime policy.

    $policy = New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"02:00:00"}}') -DisplayName "WebPolicyScenario" -IsOrganizationDefault $false -Type "TokenLifetimePolicy"