From bec599f3252b4b8fe0ca6b011cc71b7ce4327e91 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 8 Oct 2022 17:15:37 -0500 Subject: [PATCH] Update:30s timeout for file downloading axios request #1050 --- server/utils/fileUtils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/utils/fileUtils.js b/server/utils/fileUtils.js index 58be41b0..51f07787 100644 --- a/server/utils/fileUtils.js +++ b/server/utils/fileUtils.js @@ -168,7 +168,8 @@ module.exports.downloadFile = async (url, filepath) => { const response = await axios({ url, method: 'GET', - responseType: 'stream' + responseType: 'stream', + timeout: 30000 }) response.data.pipe(writer) return new Promise((resolve, reject) => {