Testing and troubleshooting
Test your endpoint before real visitors arrive, and use the delivery history to see exactly what your server answered.
Send a test event
Open the address in the app and click Send test event. We send an example person to your URL:
- in the same shape as real events, one person or a batch of one, depending on the address's schedule
- with only the fields in the address's template
- signed with the address's real signing secret, so it also tests your signature check
You can send a test even while the address is turned off, so you can test before you start receiving real people. Save a new address first, because the signing secret is created when you save.
See what your server answered
Each address has a Recent deliveries list with the time, the result and the status your server returned. A failed delivery can be sent again with Replay. See Retries and replays.
Test on your own computer
Webhooks need a public https:// URL, so a server running only on your computer cannot receive them. Use a tunnel such as ngrok to get a temporary public URL that forwards to your machine, and add that URL as an address while you test.
# Your server listens on port 3000
ngrok http 3000
# Add the https:// address ngrok prints, plus your route, for example
# https://abc123.ngrok.app/knownvisitors
Remove the test address when you are done. Each account can have up to 3 addresses.
Common problems
| What you see | What to check |
|---|---|
| Nothing arrives | The address is turned on, it starts with https://, and your server is reachable from the internet. Send a test event and check Recent deliveries. |
| Signature does not match | You are using the raw body, not re-encoded JSON, and the secret for this address. If you rotated the secret, use the new one. See Verify signatures. |
| Deliveries time out | Answer 200 within 10 seconds and do slow work afterwards. |
| A redirect error | Your URL redirects, often from http to https or to add a trailing slash. Use the final URL. |
| The same person arrives twice | That is a retry. Skip event IDs you have already saved. |
| A field is always empty | A field we do not have for a person is null. Check the template on the address includes the field. |
| The hourly batch never comes | Batches are only sent for hours when someone was identified. |
Still stuck?
Email support@knownvisitors.com or use Contact support in the app. Include the address and the time of a delivery from Recent deliveries, and we will take a look.