Hi,
I am calling an API using webhook, where in few cases API takes more than 30 seconds to complete. Though the API returns success response, webhook returns timeout error.
do we have any procedure to increase the webhook default timeout interval to resolve the issue? or else How to overcome this issue ?
Solved! Go to Solution.
Thanks for moving.
There's no way to alter the 30-second timeout.
Generally speaking, the nature of webhooks requires that they execute in a couple of seconds, or 10 seconds at most for rarely called services. Being stateless and oriented toward single requests, webhooks have no session that you can use to check status of a long-running request. And given that only ~8 are executed in parallel, if you're running a 'hook across even a few thousand leads, you need to make sure each call returns quickly.
So the first thing I would do is demand that any API endpoint that claims to be webhook-compatible can conform to these very reasonable expectations.
If you can't fix the endpoint, you can do this:
Please move the thread to Products to continue (Move link is at the right).
This space is for discussing the Champs incentive program itself, not support.
Thanks for moving.
There's no way to alter the 30-second timeout.
Generally speaking, the nature of webhooks requires that they execute in a couple of seconds, or 10 seconds at most for rarely called services. Being stateless and oriented toward single requests, webhooks have no session that you can use to check status of a long-running request. And given that only ~8 are executed in parallel, if you're running a 'hook across even a few thousand leads, you need to make sure each call returns quickly.
So the first thing I would do is demand that any API endpoint that claims to be webhook-compatible can conform to these very reasonable expectations.
If you can't fix the endpoint, you can do this: