Event grid subscription webhook end point handshake is getting failed

Kumar Negi, Dhananjay 0 Reputation points
2024-09-26T06:34:00.6933333+00:00

Event grid subscription webhook end point handshake is getting failed. Call Automation code and Devtunnel is up and running in application server. getting below error -

Deployment has failed with the following error: {"code":"URL validation","message":"Webhook validation handshake failed for https://2fmn1qwr-5006.inc1.devtunnels.ms/. Http POST request failed with response code Unknown. For troubleshooting, visit https://aka.ms/esvalidation. Activity id:9604ba58-76de-4d9c-8a95-3b5920668ab9, timestamp: 9/26/2024 5:34:22 AM (UTC)."}

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
379 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 27,176 Reputation points
    2024-09-26T08:55:53.61+00:00

    @Kumar Negi, Dhananjay Thanks for reaching out. Using the Activity id i verified the backend logs it indicates the service side error for above is: Handshake failed for endpoint with base URL: https://2fmn1qwr-5006.inc1.devtunnels.ms/ due to exception. Will resort to Manual Verification. response body: , isTimeout: False, errorMessage=The remote server returned an error: (401) Unauthorized.

    401 indicates that the webhook endpoint is failing to authenticate the validation request and is returning a 401 Unauthorized error. Why is that happening? Can you check your logs?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.