从 Power Automate 中的 SharePoint 网站获取项目时,图形 API 错误 503 serviceNotAvailable [英] Graph API error 503 serviceNotAvailable when getting item from SharePoint site in Power Automate

查看:25
本文介绍了从 Power Automate 中的 SharePoint 网站获取项目时,图形 API 错误 503 serviceNotAvailable的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 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.All
  • Directory.Read.All
  • Directory.Read.All
  • Directory.ReadWrite.All
  • Directory.ReadWrite.All
  • Files.Read.All
  • Files.ReadWrite.All
  • 组.创建
  • Group.Read.All
  • Group.ReadWrite.All
  • Group.Selected
  • Sites.FullControl.All
  • Sites.Manage.All
  • Sites.Read.All
  • Sites.ReadWrite.All
  • TeamsActivity.Read.All
  • TeamsActivity.Send
  • TeamsApp.Read.All
  • TeamsApp.ReadWrite.All
  • TeamsTab.Create
  • TeamsTab.Read.All
  • TeamsTab.ReadWrite.All
  • User.Read
  • User.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"

这篇关于从 Power Automate 中的 SharePoint 网站获取项目时,图形 API 错误 503 serviceNotAvailable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆