Skip to main content

Troubleshooting

Error response format

API errors are JSON objects with an error message. Some also carry an errorCode or code (for example ai_content_rejected, bridal_preprocessing_failed, PAYMENT_PAST_DUE_NO_PAYG, demo_cap_reached), and origin errors add a hint:
Credits consumed by a request that then fails are refunded automatically.

Error codes reference

A 404 from Cloudflare ({"error":"requested path is invalid"} with a CF-RAY header) is not a Wearo error — the request URL is wrong. The correct endpoint is POST https://api.wearo.io/functions/v1/tryon-api.

Widget button not appearing

Open DevTools and test your selector in the console:
If it returns 0 elements, your selector doesn’t match. Inspect the product image and copy its class or ID.Custom selectors guide →
The widget doesn’t inject on images smaller than 150px wide to avoid cluttering thumbnails. Ensure your main product image is at least 150px wide.
Look for [TryOnWidget] messages in your browser console. Error messages will indicate what went wrong.

Button appears in the wrong position

This happens when your image container is wider than the image itself.CSS fix:
Manual positioning:
Your selector matches more than one image. Restrict to the first:

Image quality issues

  • Use photos minimum 500×500px
  • Ensure good lighting in customer photos
  • Use product images with clean backgrounds

Still stuck?

Book a 15-min debug call

We’ll diagnose the issue live on your store.
Or email us at support@wearo.io with your store URL and a screenshot of the browser console.