Skip to main content

Troubleshooting

IssueSolution
Camera not startingEnsure you are accessing the page over HTTPS (or localhost). Camera API requires a secure context
"Failed to initialize Lens" errorVerify your Client ID is correct and that Lens For Browser is enabled for your account
Black screen after initializationCheck browser console for errors. Ensure camera permissions are granted. Try a different browser
SDK import errors in Next.jsUse dynamic import: const VeryfiLens = (await import('veryfi-lens-wasm')).default inside useEffect or event handler
Spinner stays on screenCheck browser console for WASM loading errors. Ensure your network allows connections to lens.veryfi.com
Document not detectedEnsure adequate lighting and contrast between the document and the background surface