Merge pull request #1355 from HEHEHAHAHEIHEI/wk93210/upload_bug_fix

Better Error Handling for Upload Failure and Max Uploading File Length
This commit is contained in:
binaryify 2021-09-14 15:04:37 +08:00 committed by GitHub
commit 5942e265bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,9 +29,12 @@ module.exports = async (query, request) => {
'Content-Length': String(query.songFile.size),
},
data: query.songFile.data,
maxContentLength: Infinity,
maxBodyLength: Infinity,
})
} catch (error) {
console.log('error', error.response)
throw error.response
}
return {
...tokenRes,