订阅 Microsoft Graph 推送通知时的状态代码 429
Status code 429 on subscribing to Microsoft Graph push notifications
我正在尝试订阅 Microsoft Push Notifications,每次我尝试调用订阅端点时都会收到状态代码(429 请求过多)。根据文档:
https://developer.microsoft.com/en-us/graph/docs/concepts/errors Client application has been throttled and should not attempt to repeat the request until an amount of time has elapsed.
但是,自从我昨天尝试并遇到此错误以来,我现在尝试并遇到了同样的错误。可能,我应该等待的时间不是主要原因。即使我长时间不请求 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"
}
}
}
这可能是什么问题?会不会因为我在同一资源上尝试多次订阅而出现此错误?
我们调查了这个请求,它正在节流,因为它超过了允许的最大订阅数。
我正在尝试订阅 Microsoft Push Notifications,每次我尝试调用订阅端点时都会收到状态代码(429 请求过多)。根据文档:
https://developer.microsoft.com/en-us/graph/docs/concepts/errors Client application has been throttled and should not attempt to repeat the request until an amount of time has elapsed.
但是,自从我昨天尝试并遇到此错误以来,我现在尝试并遇到了同样的错误。可能,我应该等待的时间不是主要原因。即使我长时间不请求 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"
}
}
}
这可能是什么问题?会不会因为我在同一资源上尝试多次订阅而出现此错误?
我们调查了这个请求,它正在节流,因为它超过了允许的最大订阅数。