@primestyleai/tryon 3.2.1 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react/index.js +7 -1
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -467,7 +467,13 @@ function PrimeStyleTryonInner({
|
|
|
467
467
|
const data = await res.json();
|
|
468
468
|
setSizingResult(data);
|
|
469
469
|
} else {
|
|
470
|
-
|
|
470
|
+
const errBody = await res.text().catch(() => "");
|
|
471
|
+
console.error("[PrimeStyle] Sizing API error:", res.status, errBody);
|
|
472
|
+
try {
|
|
473
|
+
const parsed = JSON.parse(errBody);
|
|
474
|
+
if (parsed.issues) console.error("[PrimeStyle] Validation issues:", JSON.stringify(parsed.issues, null, 2));
|
|
475
|
+
} catch {
|
|
476
|
+
}
|
|
471
477
|
}
|
|
472
478
|
} catch (err) {
|
|
473
479
|
console.warn("[PrimeStyle] Sizing request failed:", err);
|