Hi Everyone,
I notice some discrepancies in the error messages between POST /webhooks and DELETE /webhooks/{webhook_gid}.
When getting an error while posting/creating a webhook, I received the message neatly within value.errors
"errors": [
{
"message": "resource: Not a recognized ID: 114891026644893",
"help": "For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors"
}
]
However, when deleting a webhook and getting the same 404, I get the error object as a string:
status: 404,
value: '{"errors":[{"message":"webhook: Unknown object: 1189175975079541","help":"For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors"}]}'
}
Cheers,
Pedro