Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1355 from HEHEHAHAHEIHEI/wk93210/upload_bug_fix
Browse files Browse the repository at this point in the history
Better Error Handling for Upload Failure and Max Uploading File Length
  • Loading branch information
Binaryify authored Sep 14, 2021
2 parents 8da05fe + f5cade9 commit 5942e26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/songUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

2 comments on commit 5942e26

@vercel
Copy link

@vercel vercel bot commented on 5942e26 Sep 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

netease-cloud-music-api – ./docs

netease-cloud-music-api-git-master-binaryify.vercel.app
neteasecloudmusicapi.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 5942e26 Sep 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.