Troubleshooting
Error response format
All API errors follow this format: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
Check the product selector
Check the product selector
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 →
Image too small
Image too small
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.
Check the console for errors
Check the console for errors
Look for
[TryOnWidget] messages in your browser console. Error messages
will indicate what went wrong.Button appears in the wrong position
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.