MS-Graph Api から電子メール webhook イベントを受信する作業中のアプリケーションがあります。サブスクリプション ID を使用してサブスクリプションを見つけられないことに気付きました。404 エラーが発生します。ID を使用してサブスクリプションを削除することもできません。
さらに調査したところ、新しいサブスクリプションを作成できなくなっていることに気付きました: Azure AD に登録されているアプリケーションはサービス アプリケーション (デーモン) です。
私のアプリケーションはサブスクリプションを自動更新し、そのたびに 202 応答を受け取りますが、どういうわけかサブスクリプションが失われます。
リクエスト:
投稿: https://graph.microsoft.com/beta/subscriptions
{
"changeType": "created,updated,deleted",
"notificationUrl": "https://myapi.azurewebsites.net/GraphWebhook/Inbox",
"resource": "Users/myemail@company.nl/mailFolders('inbox')/messages",
"expirationDateTime":"2016-10-25T20:23:45.9356913Z",
"clientState": "subscription-identifier"
}
応答:
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: NotFound; Reason: Not Found]",
"innerError": {
"request-id": "681ac550-be6f-4882-9b6b-e089c36ad38e",
"date": "2016-10-25T10:13:25"
}
誰にもアイデアはありますか?
更新: 突然再び作業が始まりました。