Documentation Index
Fetch the complete documentation index at: https://docs.wearo.io/llms.txt
Use this file to discover all available pages before exploring further.
Troubleshooting
Error response format
All API errors follow this format:Error codes reference
| HTTP | Error | Cause | Solution |
|---|---|---|---|
| 400 | userPhoto and productImageUrl are required | Missing fields | Provide both userPhoto and productImageUrl |
| 400 | Failed to fetch user photo from URL | URL not accessible | Verify the URL is publicly reachable |
| 400 | Failed to fetch product image from URL | URL not accessible | Verify the URL is publicly reachable |
| 401 | API key is required | Missing header | Add X-API-Key to your request |
| 401 | Invalid API key | Key not found | Check for typos in your key |
| 402 | Insufficient credits | No credits | Purchase credits in your dashboard |
| 402 | Payment past due | Subscription failed | Update your payment method |
| 403 | API key is inactive | Key deactivated | Create a new key |
| 403 | Domain not authorized | Origin not whitelisted | Add your domain to the key’s whitelist |
| 403 | Origin header required | Missing header | Add Origin header to your request |
| 500 | AI generation failed | AI model error | Retry; contact support if persistent |
| 500 | Failed to save result | Storage error | Retry; contact support if persistent |
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
Button appears below the image or misaligned
Button appears below the image or misaligned
Multiple buttons appear
Multiple buttons appear
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.