Webhook Testing and Troubleshooting
Use an isolated test project/integration, synthetic attendee/resource data and a controlled HTTPS receiver that cannot trigger production downstream actions. Keep all acceptance, failure, retry and rotation checks in that environment. Test a subscription with an actual dispatchable event. Test incoming callbacks through their integration-specific setup; their credentials and payloads differ from outgoing subscriptions.
Outgoing acceptance sequence
- Create a project-scoped test subscription to a supported dispatchable event.
- Save its generated secret in the receiver's server configuration.
- Preserve raw request bytes and verify
X-Signaturebefore parsing. - Trigger the corresponding resource operation in the same project.
- Inspect receipt, signature result, payload validation and acknowledgment.
- Confirm the downstream business effect, then repeat the delivery to test deduplication.
- Remove temporary subscriptions after the test.
Use a final publicly reachable HTTPS URL with a valid certificate. A local/private HTTP endpoint or a redirecting receiver fails the current destination guard; deploy a controlled receiver or use your team's approved test callback service.
Incoming acceptance sequence
Before sending callbacks, obtain the integration-specific payload contract and sender retry/deduplication policy from the responsible integration administrator or provider documentation. Record retryable status codes, retry intervals/limits and the identity used to recognize a repeated notification. The outgoing subscription defaults below do not apply automatically to incoming senders. If those contracts are unknown, resolve them before enabling live callbacks.
- Provision the exact callback URL for an isolated integration/resource and confirm its destination project.
- Identify every authentication layer from Incoming Webhooks. Where both shared middleware and a controller signature apply, test a valid request with both, then refuse each missing/wrong credential independently.
- Send a documented synthetic payload and separately test a malformed payload and invalid resource reference. Check refusal and absence of unintended resource changes; do not assume all handlers return the same status/body.
- Record acknowledgment separately from queued-job completion and final resource state. Some valid notifications intentionally produce no change; check the handler-specific expectations.
- Repeat a notification and exercise the sender's documented retry behavior. Confirm the intended final state without duplicate business effects, including when a response is lost after work is accepted.
- Remove temporary callback configuration and test resources through the integration's supported cleanup procedure.
Failure cases
Test an altered body, wrong secret, missing/malformed signature, duplicate payload and unsupported data. Make invalid messages return a refusal without applying business changes. Make accepted work return promptly after durable intake so long processing does not exceed the sender's timeout.
The current outgoing defaults are three seconds and three attempts with exponential backoff, but deployment settings can differ. A timed-out response does not prove the receiver applied no changes.
Rotation and replacement checks
In a controlled test environment, queue a delivery before rotating the subscription secret and another afterward. Verify the first against the old secret and the second against the new secret. A saved rotation does not rewrite queued signatures. Confirm the receiver's transition policy and remove temporary old-secret acceptance when the transition ends.
For subscription replacement, distinguish stopping new dispatches from handling jobs already queued. Test receiver deduplication when old and new subscriptions overlap; two valid signatures do not mean two business effects should be applied. Keep these checks in an isolated test project and receiver.
Diagnose the layer
| Symptom | Inspect |
|---|---|
| No delivery | Actual dispatchability, event operation and subscription owner project/team |
| Target rejected | HTTPS, public-address resolution, certificate and final URL |
| Redirect failure | Configure the final receiver directly; redirects are refused |
| Signature mismatch | Exact raw bytes, correct subscription secret and plain hex X-Signature |
| Receiver throws on malformed signature | Type/length validation before constant-time comparison |
| Acknowledged but no business result | Receiver's durable queue/job and payload validation |
| Duplicate effects | Overlapping subscriptions, retry after response loss and deduplication |
| Inbound refused | Integration-specific header/token/signature, not the outgoing secret |
| Inbound acknowledged but resource unchanged | Referenced resource and queued-processing status |
Capture useful evidence
Record event/subscription identity, project/team, URL host, timestamp, HTTP result and redacted receiver outcome. Preserve the fact that a callback was queued, received or processed as distinct stages. Never paste signing/service secrets or full attendee payloads into a support request.
Use Outgoing Webhooks, Incoming Webhooks and Security for their distinct contracts.