We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d5e266 commit 98b918fCopy full SHA for 98b918f
1 file changed
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/hooks/use-workflow-execution.ts
@@ -494,8 +494,13 @@ export function useWorkflowExecution() {
494
logger.error('Unexpected upload response format:', uploadResult)
495
}
496
} else {
497
+ const cloned = response.clone()
498
const errorData = await response.json().catch(() => null)
- 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}`
504
const message = `Failed to upload ${fileData.name}: ${reason}`
505
logger.error(message)
506
if (isUploadErrorCapable(workflowInput)) {
0 commit comments