我正在尝试订阅 Microsoft 推送通知,并且每次尝试调用订阅端点时都会收到状态代码(429 Too Many Requests)。根据文档:
https://developer.microsoft.com/en-us/graph/docs/concepts/errors客户端应用程序已被限制,不应尝试重复请求,直到经过一段时间。
但是,由于我昨天尝试并出现此错误,因此我现在尝试并遇到相同的错误。也许,我应该等待的时间不是主要原因。即使我在很长时间没有请求 Microsoft Graph 的情况下执行完全单独的请求,也会出现问题。有关请求的信息:
https://graph.microsoft.com/v1.0/subscriptions
请求有效载荷::
{
"resource": "me/calendars/{calendarId}/events",
"notificationUrl": "https://{myApp}/office365/notifications/",
"changeType": "created,updated,deleted",
"expirationDateTime": "2017-07-22T08:23:42Z"
}
错误:
{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: 429; Reason: ]",
"innerError": {
"request-id": "1ed7e537-8524-4a8b-89eb-43501066e7fa",
"date": "2017-07-19T09:55:27"
}
}
}
这里可能是什么问题?由于我之前尝试在同一资源上多次订阅,它是否会出现此错误?