Troubleshooting
What to check when the Core AR button stays greyed out, does not appear or opens nothing.
A button that cannot start stays greyed out, with data-state="error" and the reason in data-error-code. To see it, open your browser's developer tools, find <vizbl-core> in the Elements panel and read the attribute, or listen to core-ar-error. Error codes lists every code.
Nothing appears
- The element is not defined. With a script tag, check that the page requests
core-ar.embed.min.jsand that your Content Security Policy allowscdn.vizbl.com. For the button to work, it must also allow the hosts in the Vizbl.js CSP list. From npm, check thatregisterCoreArWidgets()runs in the browser. - The tag is misspelled. The element is
<vizbl-core>, with a closing</vizbl-core>: a custom element cannot close itself in HTML.
DOMAIN_NOT_ALLOWED
Core AR runs only on your allowed domains, set under Settings → Domains in the Core AR dashboard. Add the host exactly as the address bar shows it: example.com and www.example.com are two entries, and localhost must be added for local development.
INVALID_KEY
The key is mistyped, expired, revoked or not a publishable key. Copy the data-key value again from the Core AR dashboard's widget code: it starts with pk_live_. A secret key, sk_live_…, never works in a widget.
MISSING_API_KEY or MISSING_OBJECT_ID
The element has no api-key or no object-id. In React, check that the key is written api-key: React keeps key for itself and never passes it on.
OBJECT_NOT_FOUND or VARIANT_NOT_FOUND
No model has this object-id, or the model has no variant with this variant-id. Copy both again from the Model library.
POLICY_DENIED
- The key belongs to another product. Each dashboard issues its own publishable key, and a Rugs or AI Try-On key does not open Core AR. Use the key from the Core AR dashboard.
- The model does not allow the mode.
ar-one-clickneeds a model whose settings allow one-tap AR. Usear-viewerfor it.
MODEL_UNAVAILABLE
The AR modes need a model with GLB and USDZ files. Use ar-viewer for a model without them, or check its files in the Core AR dashboard.
The button works, but AR does not open
PAYMENT_REQUIRED. The account is out of tokens, so AR does not open; the viewer shows "Viewer temporarily unavailable". Top up on Billing in the Core AR dashboard.- A computer shows a QR code. That is expected: AR runs on phones. Scan the code with a phone camera.
Still stuck
Write to support@vizbl.com with the page's address and the value of data-error-code.