Get a webhook - Invalid request

Hi,
whenever I try to use this endpoint Get a webhook I receive a 500 error like this:

{
  "errors": [
    {
      "message": "Oops! An unexpected error occurred while processing this request. The input may have contained something the server did not know how to handle. Usually waiting and then retrying the request once fixes this. If the issue is persistent, please contact api-support@asana.com and include the error phrase from this response.",
      "help": "For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors",
      "phrase": "12 dry turkeys hide somewhat justly"
    }
  ]
}

Hi @Kamil_Obeidat,

Please post the exact API call you’re making (obscuring any authentication info).

The request:

curl --request GET \
     --url https://app.asana.com/api/1.0/webhooks/1208371991482587 \
     --header 'accept: application/json'

The response:

{
  "errors": [
    {
      "message": "Oops! An unexpected error occurred while processing this request. The input may have contained something the server did not know how to handle. Usually waiting and then retrying the request once fixes this. If the issue is persistent, please contact api-support@asana.com and include the error phrase from this response.",
      "help": "For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors",
      "phrase": "8 funny leeches chuckle quite gently"
    }
  ]
}

To make sure, are you also including an authorization header and just removed it fr posting?

 --header 'authorization: Bearer [PAT goes here]'

Have you tried the call for multiple webhooks to see if it’s specific to that one?

I removed the authorization header for posting. Calling multiple webhooks works.

So it’s just happening for that one webhook ID? Do you know for sure it’s a valid ID? (Are you getting events sent to it?)

Only Asana people are able to decode the “8 funny leeches chuckle quite gently” phrase to know what the specific issue is, but I suspect there’s something wrong with that webhook if it’s just happening for that ID, and if that’s the case, I would just delete it and make a new one.