I need help setting up Event webhook on my local ngrok server

Bertha Chavez 1 Reputation point
2023-01-07T04:42:39.73+00:00

Deployment has failed with the following error: {"code":"Url validation","message":"Webhook validation handshake failed for https://ngrok URL/api/incomingCall/. Http POST request failed with response code Unknown. For troublehooting, visit https://aka.ms/esvalidation. Activity id:1fb9d582-3bbd-4ba8-99bf-c5f3b9c11122, timestamp: 1/7/2023 4:40:00 AM (UTC)."}

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

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2023-01-09T07:11:50.5+00:00

    @Bertha Chavez Thanks for reaching out. The error is expected as you need to perform the endpoint validation and for more details you can refer to this document.
    When you create the event grid subscription so the first event will be validation event and your webhook endpoint needs to perform the validation, so the event grid subscription is created sucessfully.

    Once I have started ngrok you can see the web interface and forwarding. The forwarding endpoint (over the internet) will be your webhook endpoint that you will be configuring while creating the event grid subscription. In the web interface you will see the validation code and URL as below.

    277290-image.png

    Get the validationUrl and open the URL in your browser so the validation of endpoint is sucessfull.

    277381-image.png

    Successfully Validating the endpoint:
    277362-image.png

    Feel free to get back to me if you need any assistance.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

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.