Share via

Event grid subscription webhook end point handshake is getting failed

Kumar Negi, Dhananjay 0 Reputation points
Sep 26, 2024, 6:34 AM

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.
397 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JananiRamesh-MSFT 28,411 Reputation points
    Sep 26, 2024, 8:55 AM

    @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?


  2. Chaturvedi, Rupal 0 Reputation points
    Oct 9, 2024, 10:35 AM

    hi @JananiRamesh-MSFT ,

    We are able to answer the incoming call using ACS solving every error.

    Currently we are facing the cognitive endpoint error which is as follows:

    call connected : data={'operationContext': 'Goodbye', 'resultInformation': {'code': 401, 'subCode': 8565, 'message': 'Action failed due to a Cognitive Services authentication error. Please check your authorization input and ensure it is correct.'}, 'version': '2023-10-15', 'callConnectionId': '0a008480-4e01-4c4d-ba90-5223f92e362b', 'serverCallId': 'aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzZWEyLTA1LXByb2QtYWtzLmNvbnYuc2t5cGUuY29tL2NvbnYvWmpZWGlPWGxQa0NpWDM5ZFZuOVNOUT9pPTEwLTYwLTI1LTIyJmU9NjM4NjM2NjgxNDU5MDM5MTkz', 'correlationId': 'e3bccb4b-1e9b-44bf-99c1-6fa99dd3e7c6', 'publicEventType': 'Microsoft.Communication.PlayFailed'}

     

    I'm putting the valid endpoint of the resource which I have created for the cognitive service but still I'm getting code 401. Could you please help me with this.


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.