Webhook does not reach the receiver
An endpoint is set up under Settings → Webhooks, but the system on the other side receives nothing, receives it late, rejects it or receives it twice.
Symptom
No request arrives at your receiver after a guest signs in, a voucher is used or a session starts; or the Webhook Logs page shows rows as Retrying or Failed; or the receiver logs the request but answers that the signature is wrong.
Check these first
- Open Settings → Webhooks. Is the endpoint Active, and does Listening Events (expand the card) include the event you expect?
- Press Test on the card. The status code or the error appears on the spot. A test is not written to the logs and does not move the counters, so a working Test says nothing about earlier deliveries.
- Open Webhook Logs and find the delivery. Succeeded means your receiver answered 2xx; Retrying means the last attempt failed and another is scheduled; Failed means the attempts are used up. Expand the row for the HTTP status, the receiver's error text and the attempt count.
- Look at the receiver's own access log for the request time and at the X-Webhook-Delivery header. The same value across two rows is the same event delivered again.
Possible causes
The address was refused or Captivo cannot reach it
How to tell: Saving the endpoint shows an error in Turkish, such as "URL https:// ile başlamalıdır", "Özel / dahili ağ adresleri hedef olarak kullanılamaz" or "Hedef adres tam nitelikli bir alan adı olmalıdır"; or the log error is a connection, DNS or certificate failure with no HTTP status.
Fix: The address must start with https:// and be a public, fully qualified name, because the request is made by the Captivo server itself. Private ranges (10.x, 172.16-31.x, 192.168.x, 169.254.x), localhost and single-word names such as an internal server name are refused, on-premise installations included. Publish the receiver at a public name with a certificate the server trusts (a reverse proxy in front of an internal service is the usual way). Sending to a public address from a private network also needs that network's outbound HTTPS to be open.
The endpoint is inactive or the event is not selected
How to tell: No log row appears at all for the event you expected.
Fix: An inactive endpoint receives nothing, and an endpoint receives only the events ticked on it. Turn on Webhook Active and tick the event under Edit. Then check that the event is really sent in your case: guest.authenticated only when a guest gets a password by SMS or e-mail (not for vouchers, hotel or directory sign-ins); guest.created only for a guest seen for the first time; the session events come from RADIUS accounting once a minute and need the device to send accounting (see sessions do not appear). The full list is in webhooks.
The receiver answers with something other than 2xx
How to tell: The row shows an HTTP status such as 401, 403, 404, 413, 429 or 5xx, and the error field starts with the first part of the receiver's reply.
Fix: Only a 2xx answer counts as delivered, whatever the body says. Fix what that code points at: a wrong path (404), a firewall or WAF rule that blocks unknown callers (403), a login the receiver asks for (401; the panel has no field for custom authentication headers, so authenticate by the signature instead), a body size or rate limit, or an error inside your handler. Then use the retry button on the row.
The receiver does not answer within 10 seconds
How to tell: The row shows a timeout error, a duration close to 10 000 ms and no HTTP status; or the receiver processes every event but the logs show Retrying.
Fix: Captivo waits 10 seconds for an answer, then counts the attempt as failed and tries again, so a slow receiver both looks broken and receives repeats. Make the receiver answer 200 first and do the work afterwards (queue it), and keep the handler's slow steps, such as database or CRM calls, out of the request.
The receiver cannot verify the signature
How to tell: Requests arrive, but your handler rejects them as unsigned or wrongly signed (and the log shows the status your handler returns).
Fix: Check these in order. 1) The key is the whole Secret Key including the whsec_ prefix. 2) The signed text is <X-Webhook-Timestamp>.<raw body>, with the body exactly as received, not parsed and re-serialised. 3) The comparison is of lower-case hex. 4) Your clock is within five minutes of the timestamp; a server with a drifting clock rejects every request. 5) The secret was not regenerated: Regenerate makes the old one invalid at once and the receiver must be updated. Working code in Node and Python is on webhooks.
Teams or Telegram does not accept the raw JSON
How to tell: The endpoint was created from the Microsoft Teams or Telegram template; the log shows a 400 from the service, or the message never appears in the chat although the status is 2xx.
Fix: Only Slack and Discord addresses get a message reshaped for them. Teams and Telegram receive the same Captivo JSON as any other address, and their own APIs expect their own message fields. Put n8n, Make or Zapier in between and build the chat message there, or send to your own small receiver that calls Teams or Telegram.
The same event arrives twice
How to tell: Two requests with the same X-Webhook-Delivery value, a minute or more apart, or a few seconds apart.
Fix: Delivery is at least once, not exactly once. A retry after a slow or failed answer repeats the event with the same id. The retry timer and the background retry job that runs every five minutes do not send the same retry twice. Store the X-Webhook-Delivery value of each processed event and ignore any you have seen.
The delivery used up its three attempts
How to tell: The log row says Failed with attempt count 3, or Retrying with a next attempt in half an hour.
Fix: Attempts happen at once, after about one minute and after about 30 minutes more. Then Captivo stops and raises a “Webhook delivery failed” notification for the admins (at most one per hour per organisation; see Notifications and alerts). Fix the cause above, then open the failed row and press its retry button to send it again immediately. A retry that was due while the server restarted is picked up within about five minutes. Events that fail while the receiver is down are not replayed in bulk, so reconcile from your own side if you need every event.
If it is still not solved
- The endpoint name and target address (not the secret) and which events are ticked
- The Test result: status code or error text
- One affected row from Webhook Logs: event, time, HTTP status, error text and attempt count
- The receiver's own log line for the same time, with its X-Webhook-Delivery value
- Whether the receiver is behind a firewall, WAF or reverse proxy