Mar 02 2020
- last edited on
Feb 01 2023
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();
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.
Mar 02 2020 11:53 PM
Apr 15 2020 09:25 AMSolution
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.