用于创建用于获取文件更改通知的订阅的Microsoft图形订阅API今天已停止工作。现在在没有任何代码更改的情况下获取以下错误: 开机自检https://graph.microsoft.com/v1.0/subscriptions POST正文为
{
"resource": "users/admin@mytestdomain.onmicrosoft.com/drive/root",
"expirationDateTime": "2020-05-08T18:21:50.110168Z",
"lifecycleNotificationUrl": "https://api1.mytestdomain.com/one-drive/one-drive-realtime-processor",
"notificationUrl": "https://api.mytestdomain.com/one-drive/one-drive-realtime-processor",
"clientState": "onedrive-graph-api-subscription-identifier",
}
返回以下响应:
{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: BadRequest; Reason: The property 'Resource' does not exist on type 'oneDrive.subscription'. Make sure to only use property names that are defined by the type.]",
"innerError": {
"request-id": "b04d8791-f96f-4a26-a2c2-dd06fa9d1a42",
"date": "2020-05-05T22:13:02"
}
}
}
似乎图形api发生了一些变化。 下面的链接显示了类似的错误,但它是3年前报告的: Getting 400 Bad Request Error for MSGraph's create subscription api [Error Code - ExtensionError]
我已经尝试了v1.0和beta API版本。
答案 0 :(得分:1)
这是团队正在解决的临时服务问题。我将继续在Github issue上发布更新。
答案 1 :(得分:-1)
此问题已从Microsoft端修复,现在我看到OneDrive订阅API对于OneDrive和SharePoint都像以前一样工作。 感谢您的快速解决!