From 23941c23ed18e9ec4ecea1bfdb87714808886423 Mon Sep 17 00:00:00 2001 From: AI Bot Date: Mon, 14 Sep 2026 22:35:24 +0530 Subject: [PATCH] fix: Add detailed error logging for Meshy API task creation failure --- src/components/ImageTo3DModal.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/ImageTo3DModal.tsx b/src/components/ImageTo3DModal.tsx index 0739b8c..c9e7881 100644 --- a/src/components/ImageTo3DModal.tsx +++ b/src/components/ImageTo3DModal.tsx @@ -335,7 +335,11 @@ export const ImageTo3DModal: React.FC = ({ isOpen, onClose, body: JSON.stringify(payload) }); - if (!taskRes.ok) throw new Error("Meshy API: Task creation failed."); + if (!taskRes.ok) { + const errData = await taskRes.text(); + console.error("Meshy task creation error payload:", errData); + throw new Error(`Meshy API: Task creation failed. ${errData}`); + } const taskData = await taskRes.json(); const taskId = taskData.result;