从 Power Automate 中的 SharePoint 网站获取项目时,图形 API 错误 503 serviceNotAvailable图形、错误、项目、网站

2023-09-06 17:24:56 作者:薄凉之人,

我正在尝试在 Power Automate 中使用 Microsoft Graph API,我在其中发出调用以执行某些操作.我已经成功完成了所有 Graph 调用,直到出现 503 serviceNotAvailable 错误.

I am trying to use Microsoft Graph API in Power Automate where I make calls out to perform some actions. I have been successful with all Graph calls up to this one where I get a 503 serviceNotAvailable error.

我正在尝试的电话在下面

The call I am trying is below

GET https://graph.microsoft.com/v1.0/groups/b40e54ac-5626-xxxx-xxxx-xxxxxxxxxxxx/drive/root:/filepath.docx

如果我将它直接粘贴到 Graph API 站点上的 Graph Explorer 中,它可以正常工作,所以我很高兴调用在语法上是正确的.

If I paste this directly into Graph Explorer on the Graph API site it works fine so I am happy that the call is syntactically correct.

我无法接到通过 Power Automate 工作的电话.我也通过 Postman 进行了尝试,并且遇到了同样的 503 错误.

I can't get the call to work through Power Automate. I also have tried this through Postman and am getting the same 503 error.

{
  "error": {
    "code": "serviceNotAvailable",
    "message": "The service is not available. Try the request again after a delay. There may be a Retry-After header.",
    "innerError": {
      "request-id": "87725851-77fb-xxxx-xxxx-xxxxxxxxxxxx",
      "date": "2020-03-01T16:55:43"
    }
  }
}

我的应用注册中的权限是

Permissions in my app registration are

Directory.AccessAsUser.AllDirectory.Read.AllDirectory.Read.AllDirectory.ReadWrite.AllDirectory.ReadWrite.AllFiles.Read.AllFiles.ReadWrite.All组.创建Group.Read.AllGroup.ReadWrite.AllGroup.SelectedSites.FullControl.AllSites.Manage.AllSites.Read.AllSites.ReadWrite.AllTeamsActivity.Read.AllTeamsActivity.SendTeamsApp.Read.AllTeamsApp.ReadWrite.AllTeamsTab.CreateTeamsTab.Read.AllTeamsTab.ReadWrite.AllUser.ReadUser.ReadWrite.All

我把头发拔掉了……几乎什么都没有了!

Am pulling my hair out ... and there's barely anything left!

推荐答案

如果您完全删除Group.Create"权限并进行测试,它应该可以工作.

If you remove "Group.Create" permission completely and test, it should work.

似乎它不喜欢Group.Create"和Group.ReadWrite.All"

Seems it doesn't like "Group.Create" with "Group.ReadWrite.All"