I've been having issues with webhooks not working, and when I try to figure out what's been going on... I just can't seem to find bots with issues. When I go into the automation monitor and look for issues, I never find any - nothing but green.
------------------------------------------------------------------------------------------------------------------
I think I just figured out why it's been so hard for me to debug webhook stuff:
Check out the following response for an automation webhook task:
Now check out the status of that automation bot:
------------------------------------------------------------------------------------------------------------------
So apparently, webhooks DON'T produce an error when they fail.
One would have thought that if the returned object from a webhook had an "Exception" (or maybe an "Error" key, I'm sure there's like half a dozen standard key names here...), it would have errored out the bot run so we could see the failure - not report a success.
Having all the failures hidden under a "Complete" bot makes it extremely hard to find the needle in the stack of needles. (Especially considering how the automation monitoring app is built, it's design is so rough it's barely functionable.)
------------------------------------------------------------------------------------------------------------------
Perhaps a dev will read ๐ this and throw in an IF() block for webhook task processing:
IF(Object.keys(webhook_return).includes("Exception")) {
throw new Error(webhook_return.Exception);
}
User | Count |
---|---|
14 | |
11 | |
9 | |
7 | |
4 |