Error in creating webhooks

I tried creating a webhook for project or a task whenever its being changed. The below is the error which I received.

{
“errors”: [
{
“message”: “The remote server which is intended to receive the webhook responded with an incorrect status code: 401”,
“help”: “For more information on API status codes and how to handle them, read the docs on errors: Errors
}
]
}
Any idea how to resolve this ?

Hi,

You should have a look at the handshake procedure that happens before Asana notifies you on webhook. Looks like your server did not answer the handshake properly. Am I correct @Phil_Seeman ?

You do need to do the handshake as specified in the docs. However, if Asana can successfully reach your endpoint but you don’t return the value per the handshake, you’ll get a different error. 401 is “unauthorized” so I would guess from that error that your endpoint is blocking Asana from reaching it altogether.

1 Like

Hey,
Thank you for your responses. I got it.

1 Like