SOLVED

Microsoft Graph Client - Fetch root site of Office 365 group - Error

Copper Contributor

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

 

 

 

 

2 Replies
best response confirmed by Goutham Anandhan (Copper Contributor)
Solution

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.

@Goutham Anandhan 

1 best response

Accepted Solutions
best response confirmed by Goutham Anandhan (Copper Contributor)
Solution

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.

@Goutham Anandhan 

View solution in original post