Skip to content

Commit a1ffeca

Browse files
committed
fix: add request timeout to file upload
1 parent d6ba2f4 commit a1ffeca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/process-document.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async function processDocument(
5757
headers: {
5858
'Content-Type': fileInfo.mimeType,
5959
},
60-
signal: AbortSignal.timeout(60000),
60+
signal: AbortSignal.timeout(2 * 60000),
6161
});
6262
if (uploadResponse.status !== 200) {
6363
throw new Error(

0 commit comments

Comments
 (0)