question

Krasa avatar image
0 Votes"
Krasa asked VickyKumarMindtreeConsultingPVTLTD-5545 commented

Graph API timeouts

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).

example:

GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 10012 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://graph.microsoft.com/v1.0/drives/xxx/items/xxx/invite


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-general
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.

1 Answer

VickyKumarMindtreeConsultingPVTLTD-5545 avatar image
0 Votes"
VickyKumarMindtreeConsultingPVTLTD-5545 answered VickyKumarMindtreeConsultingPVTLTD-5545 commented

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"


· 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.

I don't see how the access token is relevant here, if it expired, then I would get a normal error.

0 Votes 0 ·

As,I can see you were trying to access Onedrive, right? could you please try other endpoint and let's see, are you getting the same error.

also try the same API in graph explorer


0 Votes 0 ·