Webhook Failure Handling in BoldDesk
Webhooks enable real-time data transfer from BoldDesk to external applications, supporting automated workflows and integrations. However, webhook deliveries can fail because of network issues, invalid endpoints, authentication errors, endpoint timeouts, or downstream service failures.
This guide explains:
- Common causes of webhook delivery failures
- The impact of webhook failures on integrations
- BoldDesk retry and deactivation behavior
- Best practices for monitoring and reliable event processing
- How to recover data after failed or missed webhook deliveries
1. Webhook Timeout
BoldDesk waits up to 10 seconds for the endpoint to return an acknowledgment response.
If the endpoint does not respond within 10 seconds:
- BoldDesk treats the delivery attempt as failed.
- BoldDesk retries the webhook up to 5 times.
- Retries use exponential backoff.
The webhook timeout is the 10-second period during which BoldDesk waits for the endpoint to return an acknowledgment response.
Troubleshoot TaskCanceledException and Long-Running Endpoints
A System.Threading.Tasks.TaskCanceledException can occur when BoldDesk sends the webhook request, but the endpoint does not return an acknowledgment within the 10-second response window.
This commonly occurs when the endpoint performs long-running operations before returning a response, such as:
- Database synchronization
- External API calls
- Large data transformations
- Application cold starts
- Slow database queries
- Temporary downstream service latency
Use the following processing flow:
- Receive the webhook request.
- Validate and store the payload in a durable queue or database.
- Return an immediate successful acknowledgment.
- Process the stored payload through a background worker.
- Record the processing result.
- Retry failed background jobs independently of the webhook request.
Return an acknowledgment such as: HTTP/1.1 200 OK
You can also return the following response when the endpoint has accepted the payload for asynchronous processing: HTTP/1.1 202 Accepted
- Do not wait for database synchronization, external API calls, or other long-running business logic to finish before acknowledging the webhook.
- The 10-second timeout applies to the acknowledgment response. It does not limit background processing performed after the payload has been stored.
- When the failure details show that BoldDesk established the connection, sent the request, and then encountered
TaskCanceledExceptionwhile waiting for the response, the endpoint most likely exceeded the 10-second webhook response timeout.
2. Webhook Retry Mechanism
BoldDesk retries a failed webhook request up to 5 times.
Retries use exponential backoff with the following delay range:
- Minimum delay: 30 seconds
- Maximum delay: 10 minutes
For example, if the first retry fails, BoldDesk waits longer before making the next delivery attempt.
Handle Duplicate Webhook Deliveries
BoldDesk can attempt the same webhook delivery more than once when an earlier attempt times out or fails.
Design the receiving integration to process repeated deliveries safely without creating duplicate records or applying the same update more than once.
When the webhook payload does not provide a stable event identifier, create a deduplication key by combining stable values from the payload, such as:
Ticket ID + Event Type + Event Timestamp
To prevent duplicate processing:
- Generate or retrieve the event’s deduplication key.
- Check whether the key was processed previously.
- Skip the business operation if the event was already processed successfully.
- Process the event when the key has not been recorded.
- Record the key after the operation completes successfully.
- Retain the key for the integration’s required retry and reconciliation period.
Idempotent processing is important because webhook retries can result in duplicate deliveries even when only one ticket event occurs.
3. Automatic Webhook Deactivation
If a webhook fails 20 consecutive times, BoldDesk:
- Deactivates the webhook automatically.
- Generates an error log.
- Sends a failure notification email to users with the Account Owner role.
Sample email notification:
Due to repeated delivery failures, the webhook {WebhookName} has been temporarily deactivated.
Please verify the destination URL and resolve the errors listed here:
{WebhookFailureLogURL}
After fixing the errors, reactivate the webhook from the Inactive tab.
Resolve Webhook Deactivation
- Verify that the destination URL is operational.
- Review Webhook Failure Logs.
- Correct the endpoint issue shown in the failure details.
- Re-enable the webhook in BoldDesk.
- Confirm that new webhook events are delivered successfully.
- Reconcile events that failed or were missed while the webhook was inactive.
4. Webhook Failure Logs
Webhook Failure Logs provide detailed information about unsuccessful webhook delivery attempts.
Access Webhook Failure Logs
-
Go to Admin → Audit Logs.
-
Select Webhook Failure Logs.
-
Select View for the required failure entry.
5. Receive Webhook Failure Notifications
Webhook failure and deactivation notifications are sent only to users with the Account Owner role. They are not sent to individual webhook owners.
To assign the Account Owner role:
-
Go to Admin → Agents.
-
Select the required agent.
-
Select Edit Agent.
-
Assign the Account Owner role.
-
Save the changes.
The Account Owner role provides account-level administrative access. Do not assign this role only for notification delivery unless the user is authorized to receive the associated permissions.
For more information, learn more on Managing Agent Roles and Permissions in BoldDesk.
Export, Retry, and Replay Limitations
BoldDesk does not currently support:
- Exporting Webhook Failure Logs.
- Retrying failed webhook events in bulk.
- Automatically replaying events that failed after all retry attempts.
- Automatically replaying events that occurred while a webhook was inactive.
After correcting the endpoint issue, a BoldDesk administrator must reactivate the webhook and confirm that new events are delivered successfully.
The external integration must reconcile events that failed after all delivery attempts or occurred while the webhook was inactive.
To reconcile the affected data:
- Go to Admin → Audit Logs → Webhook Failure Logs.
- Identify the affected webhook and record the period during which delivery failed or the webhook remained inactive.
- Retrieve tickets modified during that period through the applicable BoldDesk APIs.
- Retrieve the required ticket details, public replies, or private notes.
- Compare the retrieved data with the records already processed by the integration.
- Process only records that are missing or newer than the corresponding records in the receiving system.
- Record a unique identifier or deduplication key for each successfully processed event.
- Before processing an event, check whether its identifier or deduplication key was recorded previously.
- Skip the event if it was already processed successfully.
- Reactivate the webhook if it was automatically deactivated.
- Confirm that new webhook events are delivered and processed successfully.
- The external integration or a custom recovery script must perform the API retrieval, comparison, and duplicate-prevention steps. BoldDesk does not perform these actions automatically.
- BoldDesk APIs return current ticket and conversation data. The APIs do not replay the original webhook requests that failed or were missed while the webhook was inactive.
- Use webhooks for near-real-time updates and API reconciliation to recover records that were not processed successfully.
Troubleshooting Webhook Delivery Failures
Webhook Requests Are Timing Out
- Confirm that the endpoint returns an acknowledgment within 10 seconds.
- Move database synchronization, external API calls, and other long-running operations to a background process.
- Store the webhook payload before returning the acknowledgment.
- Return
HTTP 200 OKorHTTP 202 Acceptedafter the payload has been accepted successfully. - Review endpoint processing duration, application cold starts, database latency, and downstream-service response times.
Webhook Is Being Retried Repeatedly
- Review Webhook Failure Logs to determine whether the failures are caused by timeouts or endpoint responses.
- Verify that the endpoint URL is correct.
- Validate DNS resolution and endpoint availability.
- Confirm that the endpoint handles the configured HTTP method.
- Validate the authentication details expected by the endpoint.
- Confirm that the endpoint returns a successful HTTP response within 10 seconds.
- Ensure that repeated deliveries can be processed idempotently.
Webhook Is Inactive
- Review Webhook Failure Logs to identify the failures that caused the automatic deactivation.
- Correct the endpoint issue shown in the failure details.
- Reactivate the webhook.
- Confirm that new events are delivered successfully.
- Run the external reconciliation process to recover missing updates.
An Agent Did Not Receive the Failure Email
- Confirm that the user has the Account Owner role.
- Confirm that the email address associated with the Account Owner is valid.
- Review the recipient’s Spam, Junk, and Quarantine folders.
- If the user is not an Account Owner, BoldDesk does not send the webhook deactivation notification to that user.
Frequently Asked Questions
-
How long does BoldDesk wait before a webhook attempt is considered timed out?
BoldDesk waits 10 seconds for an acknowledgment from the endpoint. If no response is received within that period, BoldDesk treats the attempt as failed and begins the retry process. -
Can the webhook timeout be increased from 10 seconds?
No. The 10-second webhook timeout cannot currently be extended. Return an immediate acknowledgment and process long-running operations asynchronously. -
How many times does BoldDesk retry a failed webhook request?
BoldDesk retries the failed webhook request up to 5 times using exponential backoff. -
What are the minimum and maximum retry delays?
Retry delays start at a minimum of 30 seconds and can increase to a maximum of 10 minutes. -
When does BoldDesk automatically deactivate a webhook?
BoldDesk automatically deactivates a webhook after 20 consecutive failures. -
Who receives webhook deactivation email notifications?
Users with the Account Owner role receive webhook deactivation email notifications. -
Can BoldDesk send failure notifications to the webhook creator instead of an Account Owner?
No. BoldDesk sends webhook failure and deactivation notifications to Account Owners, not individual webhook owners. -
Can BoldDesk export Webhook Failure Logs or retry failed events in bulk?
No. BoldDesk does not currently support exporting Webhook Failure Logs, retrying failed webhook events in bulk, or automatically replaying missed events. -
How can an integration recover events missed while a webhook was inactive?
The integration must use the applicable BoldDesk APIs to retrieve tickets updated during the affected period. The integration must compare the retrieved data with previously processed records and process only missing or newer data. -
What does
System.Threading.Tasks.TaskCanceledExceptionindicate in a webhook failure?
When the failure details show that BoldDesk established the connection, sent the request, and then timed out while waiting for the response, the exception indicates that the endpoint did not return an acknowledgment within the 10-second response window.Store the payload, return an immediate successful acknowledgment, and perform long-running operations asynchronously.
-
Why must webhook processing be idempotent?
BoldDesk can attempt the same webhook delivery more than once when an earlier attempt times out or fails. Idempotent processing prevents duplicate records or repeated updates when the same event is delivered again.