We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a9eb1c commit 7a855ebCopy full SHA for 7a855eb
1 file changed
apps/sim/app/workspace/[workspaceId]/knowledge/hooks/use-knowledge-upload.ts
@@ -890,7 +890,12 @@ export function useKnowledgeUpload(options: UseKnowledgeUploadOptions = {}) {
890
891
if (!batchResponse.ok) {
892
const { message } = await readResponseError(batchResponse)
893
- throw new Error(`Batch ${batchIndex + 1} presigned URL generation failed: ${message}`)
+ logger.error('Batch presigned URL generation failed', {
894
+ batchIndex: batchIndex + 1,
895
+ totalBatches: batches.length,
896
+ status: batchResponse.status,
897
+ })
898
+ throw new Error(message)
899
}
900
901
const { files: presignedData } = await batchResponse.json()
0 commit comments