fix: Add detailed error logging for Meshy API task creation failure
Build and Deploy / build-and-push (push) Successful in 37s
Build and Deploy / build-and-push (push) Successful in 37s
This commit is contained in:
@@ -335,7 +335,11 @@ export const ImageTo3DModal: React.FC<ImageTo3DModalProps> = ({ 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user