mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Update:30s timeout for file downloading axios request #1050
This commit is contained in:
		
							parent
							
								
									affcc03c61
								
							
						
					
					
						commit
						bec599f325
					
				| @ -168,7 +168,8 @@ module.exports.downloadFile = async (url, filepath) => { | |||||||
|   const response = await axios({ |   const response = await axios({ | ||||||
|     url, |     url, | ||||||
|     method: 'GET', |     method: 'GET', | ||||||
|     responseType: 'stream' |     responseType: 'stream', | ||||||
|  |     timeout: 30000 | ||||||
|   }) |   }) | ||||||
|   response.data.pipe(writer) |   response.data.pipe(writer) | ||||||
|   return new Promise((resolve, reject) => { |   return new Promise((resolve, reject) => { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user