用于创建订阅以获取文件更改通知的Microsoft图形订阅API现已停止工作。现在在没有任何代码更改的情况下出现以下错误:POSThttps://graph.microsoft.com/v1.0/subscriptionsPOST正文为
{
"resource": "users/[email protected]/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版本。
这是团队正在解决的临时服务问题。我将继续在Github issue上发布更新。