Skip to content

Commit 98b918f

Browse files
Address pr comments
1 parent 8d5e266 commit 98b918f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/hooks/use-workflow-execution.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,13 @@ export function useWorkflowExecution() {
494494
logger.error('Unexpected upload response format:', uploadResult)
495495
}
496496
} else {
497+
const cloned = response.clone()
497498
const errorData = await response.json().catch(() => null)
498-
const reason = errorData?.message || errorData?.error || `${response.status}`
499+
const reason =
500+
errorData?.message ||
501+
errorData?.error ||
502+
(await cloned.text().catch(() => '')) ||
503+
`${response.status}`
499504
const message = `Failed to upload ${fileData.name}: ${reason}`
500505
logger.error(message)
501506
if (isUploadErrorCapable(workflowInput)) {

0 commit comments

Comments
 (0)