Forum Discussion
Microsoft Graph Client - Fetch root site of Office 365 group - Error
Hi All,
We are running a program to create a office 365 group using Microsoft graph (Graph client - latest stable version) via a Azure AD App. The same program tries to fetch the root site of the group.
The app has enough permissions to perform both operations and the code was executing. Recently the following line started breaking
var grpSite = await graphClient.Groups[grpId].Sites["root"].Request().GetAsync();
return grpSite;
The error message is as follows
Microsoft.Graph.ServiceException: Code: tooManyRetries
Message: More than 3 retries encountered while sending the request.
Only the calls related to fetching sites are failing - we are using V1.0 graph API.
Any pointers will be much appreciated.
Thanks,
Goutham
This is a bug. One of the group permissions is creating this issue. Can't recall exactly which one was in my case - I think it was Group.Selected. As soon you remove the problematic permission the error should be gone.
2 Replies
- StereoOTypeCopper Contributor
This is a bug. One of the group permissions is creating this issue. Can't recall exactly which one was in my case - I think it was Group.Selected. As soon you remove the problematic permission the error should be gone.
- FabioO365GoDBrass Contributor
I think the problem is caused by the throttling
https://docs.microsoft.com/en-us/graph/throttling
Thanks