Webhooks stategy explained #20076
Replies: 2 comments 1 reply
-
Hey there, @williamzeni99! 👋 I'm here to assist you with bugs, questions, or if you want to become a contributor. Just ask! I found two similar closed issues related to webhooks in Cal.com:
Regarding your question, Cal.com does have a mechanism to prevent the booking process from completing if a webhook returns an error. The error handling is integrated into the booking process, and if an error occurs, such as a missing event data or invalid duration, the process is halted, and an error message is displayed to the user [3][4]. Additionally, Cal.com determines whether to retry a failed webhook or proceed with the booking process by using a try-catch mechanism. If an error is intended to trigger a retry, it must be thrown as a To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
@dosu If there exist the mechanism to stop the process of booking if a webhook fails, how can I implement it? I set up the webook in my cal.com and I have enabled a redirect page. I have a nuxt app api exposed just for raising 500 or 400 errors but still I can complete the booking process with a successful state. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everybody!
I have self-hosted the docker image and it works smoothly. I tried to add a webhook to one event and It actually runs, but it seems to run even if it shouldn't. If I raise an error 500 in my webhook script, should calcom drop the booking process? What is the policy of failed webhooks? Does it ignore the script errors?
Beta Was this translation helpful? Give feedback.
All reactions