未验证 提交 5942e265 编写于 作者: B binaryify 提交者: GitHub

Merge pull request #1355 from HEHEHAHAHEIHEI/wk93210/upload_bug_fix

Better Error Handling for Upload Failure and Max Uploading File Length
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册