Skip to content

Errors ​

There are two kinds of error, and they go to different places.

  • The try-on could not start. Your page is told, through the error event. These are usually something you can fix in the install.
  • Something went wrong inside the try-on. The shopper is told, inside the try-on, in plain words and with a way forward. Your page is not told, with one exception: a product picture on a host your store doesn't allow, because that one is yours to fix.

Codes your page receives ​

js
Labbesne.push([
  'on',
  'error',
  ({ code, message }) => {
    console.warn('Try-on error:', code, message)
  },
])
CodeWhat happenedWhat to doIn the dataLayer
unavailableopen() was called, and try-on is off for your key. Nothing opened.Check the store in the dashboard: its key, whether it is paused, and the account's credits. See When try-on is off.No
unreachableopen() was called, and Labbesne did not answer. Nothing opened.If it happens every time, check your Content-Security-Policy. The next open() asks again.No
no_productopen() found no product: no name or no picture.Add product data to the page, or pass title and imageUrl. See Product data.No
frame_timeoutThe try-on's frame did not load within 15 seconds.Almost always: the page is not on the store's list of sites. See Sites.Yes
key_refusedThe frame loaded, and Labbesne refused the key.Paste the tag from the store's Install page again. The key may have been rotated.Yes
missing_keyThe frame was opened without a key.Add data-key to the tag, or pass key to init().Yes
start_failedThe frame loaded, and the try-on could not start: a network or server problem.Nothing on your side. The shopper can close and try again.Yes
garment_host_not_allowedThe try-on started, and the product's picture is on a host your store doesn't allow. No picture was made.Allow the host under Image hosts on the store's Sites and key page. See Image hosts.Yes

message is a short English sentence for your logs, such as The try-on frame did not load. Don't show it to shoppers as it is: go by code.

The last one is the only code that comes from inside a try-on that had started. It reaches your page because the cause is in your store's settings. Its message names the fix: The product image is on a host this store does not allow. Allow it under Image hosts in the dashboard. It does not name the host: the dashboard does.

What the shopper sees:

  • unavailable, unreachable, no_product: nothing opens. If the shopper tapped a button of your own, tell them yourself.
  • frame_timeout: a loading sheet with a close button.
  • key_refused, missing_key, start_failed, garment_host_not_allowed: an error screen inside the try-on.

After any code that opened the try-on, closing it and opening it again starts a new try-on. A photo the shopper had taken is not kept.

"In the dataLayer" says whether the script also pushes labbesne_error_shown with that code. See Analytics.

Treat an unknown code as "the try-on did not work". We may add codes.

Codes the shopper sees ​

These happen inside the try-on. The shopper gets a screen that says what went wrong and what they can do. Your page does not receive them, in the error event or in the dataLayer. The one exception is garment_host_not_allowed, which is also in the table above.

They are listed so you can recognise them when a shopper or our support names one, and so you know which ones your install can cause.

Yours to fix ​

CodeWhat the shopper is toldWhat causes it
unsupported_garment_imageThis image can't be usedThe product's picture is not a JPEG, PNG or WebP, or is over 10 MB. See The picture.
garment_host_not_allowedThis item can't be tried onThe product's picture is on a host your store doesn't allow. Nothing is fetched, and no credit is taken. Your page is told too. See Image hosts.
garment_unreachableWe couldn't open that pageLabbesne's server could not fetch the product's picture: it is not public, too slow, or redirects too often.
try_on_unavailableTry-on is switched offThe account ran out of credit, the key was rotated away, the store was paused or the account suspended, after the page had loaded. See When try-on is off.
daily_limit_reachedTry-on is taking a breakThe store or the account reached its try-ons for the day. See Daily limits.

The shopper's to fix ​

CodeWhat the shopper is toldWhat causes it
invalid_photoThat photo won't workThe photo is not one the try-on can use. They can take another.
invalid_clipThis clip won't workThe same, for a video. Only where video try-on is switched on.
payload_too_largeThat file is too bigThe file they picked is too large.
content_blockedWe can't make this oneA safety check refused the photo, the product's picture or the result.
rate_limitedOne momentToo many requests in a short time. They can try again in a minute. See Rate limits.

Ours to fix ​

CodeWhat the shopper is toldWhat causes it
provider_failedThat didn't workThe picture could not be made this time. Their photo is still there, and they can try again.
provider_quota_exhaustedTry-on is taking a breakLabbesne can't make pictures for the moment.
generation_disabledTry-on is taking a breakLabbesne has switched picture-making off for the moment.
internalSomething went wrongAn error on our side.
invalid_requestThat didn't go throughA request the try-on's server did not accept.

Handled without the shopper ​

CodeWhat happens
unauthorizedThe try-on's session ran out. It gets a new one by itself and carries on.
forbiddenA request was refused. At the start of a try-on it reaches your page as key_refused.
not_foundA result that is no longer there. The shopper is asked to start a new try-on.
garment_not_foundUsed by Labbesne's own tools when a page has no product. On your shop this case is no_product, above.

If one of these shows up often on your shop, write to [email protected] with the product page's address.