Hi Simeon L,
Thanks for posting in the Q&A forum. The time out duration of 10 seconds appears to indicate that Microsoft Graph did not receive a validation response within the expected time frame.
Please verify/reference the following items:
- See to isolating the code with Graph Explorer to call same API and observe results.
- Note notificationUrl must be capable of responding to the validation request. Also, you need to make sure that the validation token returns as plain/text. Please refer to the Notification endpoint validation document for details.
- Some mentions from that same reference:
200 (OK) status code.
content type must be text/plain.
body must include the validation token. - Reference these code samples below to compare with source code in question:
// Validate the new subscription by sending the token back to Microsoft Graph.
// This response is required for each subscription.
if (Request.QueryString["validationToken"] != null)
{
var token = Request.QueryString["validationToken"];
return Content(token, "plain/text");
}
Note also to verify (if applicable) that no other connection issues with the API gateway in use (i.e., AWS API Gateway) via custom domains.
As it maybe, possible that an increase in of API Gateway increased over time. Which could potentially trigger some limitations of connections via MS Graph API to the API Gateway. For further troubleshooting using public webhook listener testing tools for reproduction of this issue.
Please note currently known issues, otherwise for further investigations for specific account related issues.
Please request via a support case using the links below:
Please don't forget to upvote and Accept as answer
if the reply is helpful