Update:30s timeout for file downloading axios request #1050

This commit is contained in:
advplyr 2022-10-08 17:15:37 -05:00
parent affcc03c61
commit bec599f325

View File

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