Webhooks
Runbooks
Operational playbooks for Webhooks
API key failures (401/500)
Symptoms
- Clients receive
401 Unauthorizedor{"detail": "API key is missing"}. - Service returns
500with"API key error"on every request.
Checks
- Confirm the request includes
X-API-Key. - Verify the
WEBHOOKS_API_KEYsecret exists in Secret Manager. - Ensure the service account has
secretmanager.versions.access. - Restart the service to reload secrets.
Task scheduling failures
Symptoms
- Webhook requests return
500with enqueue errors. - Cloud Tasks show missing tasks or repeated failures.
Checks
- Verify
CLOUD_TASKS_*settings andHANDLER_SERVICE_BASE_URL. - Confirm the Cloud Tasks queue exists in the configured location.
- Ensure the service account has permission to create tasks.
- Check Handler availability for target endpoints.
Payload validation errors
Symptoms
422responses or logs referencing validation errors.413 Request payload too large.
Checks
- Ensure the webhook payload matches the expected schema.
- Confirm invoice counts do not exceed 100 per request.
- Keep payload size below 750 KiB.
Bubble sync issues
Symptoms
- Bubble-triggered updates do not appear in Spanner.
Checks
- Verify Bubble triggers are sending
RawEventpayloads. - Confirm tasks are created and dispatched to Handler.
- Inspect Handler logs for processing failures.
Last updated on