Naveen Anto
Naveen Anto

Reputation: 97

Graph subscription errors on Validation request

I've my subscription observer registered as anonymous function in Azure (v2) to receive calendar events.Allow anonymous request is also enabled in Azure function (v2). I'm receiving the following error while subscribing despite the fact that the exact same code running locally using ngrok works.

Message: Subscription validation request failed. Notification endpoint must respond with 200 OK to validation request.
Inner error:
    AdditionalData:
    request-id: 8ae23cdc-c35f-479c-89ee-00afed2230e4
    date: 2020-03-20T14:07:44

P.S: There's no request at receiver (observer) end.

Upvotes: 0

Views: 1309

Answers (1)

Hury Shen
Hury Shen

Reputation: 15734

Since you have set "allow anonymous", so I think you need to check if your function can accept "text/plain" but not "application/json". Most of these issues are caused by the content-type.

You can refer to this post and this link.

Upvotes: 1

Related Questions