Troubleshooting
What to check when Room Viewer does not open, shows an error or shows the wrong products.
Room Viewer reports problems in its dialog, not in the console. To see the cause, open your browser's developer tools on the page, go to the Network tab, open the viewer and look for a failed request to api.vizbl.com.
Nothing opens
- The script did not load. With a script tag, check that the page requests
room-viewer.embed.min.jsand that your Content Security Policy allowscdn.vizbl.com. - The trigger is not marked. The embed build opens Room Viewer only for elements with
data-vizbl-room-viewer-dialog. - The trigger was added later.
new RoomViewerDialog(selector)binds only the elements that exist when you call it. Create it after the trigger renders, or use the embed build. See Lifecycle. typeis missing or misspelled. It must bewallart,rugs,flooringorwallcovering. With any other value the viewer does not start.
"We could not load the viewer"
- The host is not allowed. Room Viewer runs only on your allowed domains, under Settings → Domains in the dashboard. On any other host, its requests are refused. Add the host exactly as the address bar shows it:
example.comandwww.example.comare two entries, andlocalhostmust be added for local development. - The key is a secret key. A secret key,
sk_live_…, never works in a widget. Use the publishable key, which starts withpk_live_.
"Invalid API key"
The key is mistyped, revoked or expired. Copy the data-key value again from your dashboard's widget code: it starts with pk_live_.
Wrong rooms or products
Each dashboard issues its own publishable key. With a key from another product, for example a Rugs key with type="wallart", Room Viewer shows the rooms and catalogue of the key's product instead of the type you set. Use the key of the dashboard the type comes from.
"Viewer temporarily unavailable"
The account behind the key cannot serve the widget right now. Check the plan on the billing page of the dashboard the key comes from, or write to support.
Wall art shows an empty wall
Wall art needs width and height. Without them the artwork is drawn at zero size.
"The image could not be loaded"
Check that src loads in a new browser tab and that the image's host sends an Access-Control-Allow-Origin header. See Wall art.
Still stuck
Write to support@vizbl.com with the page's address and, if a request failed, its response from the Network tab.