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) => {