Skip to main content

Troubleshooting

Find the symptom that matches what you see. Each entry lists the likely causes in order and how to fix them. If nothing here helps, see Contact support.

Cannot start a verification​

Your server's Create Session call fails, or the verify button shows an error. Check your server log for the HTTP status and response.

ResponseCauseFix
401 API key required or Invalid API keyThe key is missing, mistyped, deleted, or has extra spaces.Copy the key again from API Keys. Check that your server reads the environment variable you set.
401 Tenant is not activeThe account is suspended or closed.Contact support.
403 API key not valid for this brandThe key is not a PrivateAV key, or the request went to another service's address.Use a PrivateAV key with https://api.privateav.com.
400 Return URL domain not allowedreturnUrl (or cancelUrl) is on a domain that is not in Configuration → Domains.Add the domain, or localhost for local testing. A root domain such as example.com also allows its subdomains.
403 Origin '…' not allowedJavaScript SDK on a page whose domain is not in Configuration → Domains.Add the page's domain.
400 with a list of messagesThe request body is invalid, for example returnUrl does not start with http:// or https://.Correct the fields named in the messages.
403 SUBSCRIPTION_REQUIREDNo active subscription.Choose a plan in Billing. See Plans, billing and limits.
503 SESSION_LAUNCH_CONFIGURATION_UNAVAILABLEThe key pair has no active publishable key.In API Keys, make sure the pair you use has an active publishable key, or create a new pair.
429More than 300 sessions created per minute across your account.Slow down and retry after X-RateLimit-Retry-After seconds.
No response, or 5xxNetwork problem or a temporary service problem.Retry after a short delay. Show users a "try again shortly" message.

JavaScript SDK only: "Too many verification attempts. Please wait before trying again." means verify() was called more than five times in a minute on one page. Show a "wait a minute" message.

The verification page says verification is blocked​

The user sees Sandbox Limit Reached, Subscription Required or Monthly Limit Reached on the PrivateAV page.

Your account cannot start new verifications. An Owner or Admin must act in Billing:

  • Sandbox Limit Reached: the free sandbox allowance is used up. Choose a plan or subscription.
  • Subscription Required: there is no active subscription. Subscribe.

Users cannot fix this themselves. Your server sees 403 with the matching code, or for the sandbox limit a 201 response containing billingBlock.

Users finish verification but do not get access​

  1. Your return page uses the status parameter, or is missing. Check that the returnUrl page exists, calls Validate Session, and sends a response in every case (including errors).
  2. Validate Session returns status: "pending". The user returned early, or left without finishing. Offer Check again and Continue verification.
  3. The externalUserId does not match. The session was started for a different user ID than the signed-in user, or your code compares numbers with strings. Compare the values exactly as you sent them.
  4. Validate Session returns 404 Session not found. The secret key belongs to a different account from the one that created the session, for example test and live sites using different accounts.
  5. The user lost their session cookie between leaving and returning (for example a cookie set with SameSite=Strict, or a different domain for returnUrl). Use SameSite=Lax and return to the same domain.
  6. A page cache is serving an old copy of the protected page. Exclude protected pages from caching.

Users return to the site without finishing​

A user who does not pass, or gives up, may choose Return to site. They arrive at your cancelUrl, or your returnUrl if you set none, with no parameters, and their session stays open until its 10 minutes end.

Your return page should look up the session the user started, show that it is not finished, and offer Continue verification (the same session) or a new attempt once it has expired. Explain what helps: a valid photo ID, good light, and the whole document in view.

Users are asked for an ID when you did not expect it​

  • Your mode is L2, which always asks for an ID. New accounts start on L2.
  • In L1, users whose estimated age is below your challenge age are asked for an ID. A higher challenge age sends more users to the ID step.
  • Your code sends verificationMode or challengeAge, which override the Dashboard settings. Validate Session shows the values each session used.

See Age policy and verification modes.

The verification page does not load or shows an error​

What the user seesCauseFix
An "invalid" or "expired" session messageThe link is older than 10 minutes, or was changed.Create a new session. Use verifyUrl exactly as returned; only add lang, skip_intro or auto_return.
The camera does not startCamera permission denied, another app using the camera, or the page embedded in a frame without camera permission.Ask the user to allow camera access, or open verification in its own tab instead of a frame.
A popup does not open (SDK new-tab mode)Popup blocker.Ask the user to allow popups, or use redirect mode.
The SDK button does nothingThe SDK script did not load (blocked by an extension or network).Check the browser console. Show a fallback message when PrivateAV is undefined.

Webhook tests fail or the endpoint is paused​

Result of TestCauseFix
401Your receiver rejects the signature: the secret on your server is not this endpoint's secret, or the HMAC is computed over parsed JSON instead of the raw body.Regenerate the secret, update your server, and hash the raw body. See Verify the signature.
404Wrong path, or (WordPress) pretty permalinks are off.Check the URL. Open it in a browser to confirm it exists.
403 or an HTML challenge pageA firewall, CDN bot protection or security plugin blocks the request.Allow POST requests to the endpoint path.
TimeoutYour receiver takes longer than 15 seconds.Respond 2xx first, then do slow work in the background.
Rejected when saving the URLThe URL is not HTTPS, or resolves to a private or local address.Use a public HTTPS address; use a tunnel for local testing.

Endpoint paused: after an hour of rejections or 24 hours of failures, delivery pauses and every Dashboard page shows a notice. You are not emailed. Fix the cause, click Test and resume, then Redeliver to send the events of the last 7 days that were not delivered. Results are always available from Validate Session meanwhile. See Endpoint health.

Duplicate events: delivery is at least once. Deduplicate by eventId.

Your receiver accepts requests without a signature: fix this before launch. Anyone can send such requests. See Webhooks.

Validate Session errors​

ResponseCauseFix
401 Private API key required for session validationA publishable key (pk_) was used.Use the secret key, on your server.
401 Private API key is not authorizedThe secret key was revoked or expired.Create a new key pair and update your server.
404 Session not foundUnknown session ID, or a session from another account.Use the sessionId your server stored, with the same account's key.
400 Session has expiredThe session ended unfinished after 10 minutes.Offer a new attempt.
429More than 100 validations per minute across your account.Do not poll in a tight loop. Validate when the user returns, and use webhooks.

Contact support​

Email support@privateav.com, or use Support in the Dashboard. Include:

  • the sessionId and the approximate time (with time zone);
  • what the user saw, or the exact HTTP status and error message your server received;
  • whether you use the server integration, the JavaScript SDK or WordPress.

Never send API keys, webhook signing secrets, or images of users' IDs.