mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-23 15:43:10 +00:00
Better Error Handling during Upload Failure and Setting Max File Length to Infinity
This commit is contained in:
parent
8da05fe6f9
commit
f5cade95e4
@ -29,9 +29,12 @@ module.exports = async (query, request) => {
|
|||||||
'Content-Length': String(query.songFile.size),
|
'Content-Length': String(query.songFile.size),
|
||||||
},
|
},
|
||||||
data: query.songFile.data,
|
data: query.songFile.data,
|
||||||
|
maxContentLength: Infinity,
|
||||||
|
maxBodyLength: Infinity,
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log('error', error.response)
|
console.log('error', error.response)
|
||||||
|
throw error.response
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
...tokenRes,
|
...tokenRes,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user