onedrive-api icon indicating copy to clipboard operation
onedrive-api copied to clipboard

Set throwHttpErrors to false in uploadSession

Open haggholm opened this issue 2 years ago • 0 comments

uploadSession() attempts to check the HTTP status code of got responses, but by default, got sets the throwHttpErrors parameter to true, meaning that the promises reject rather than return objects with ≥400 status codes. This causes the upload to leak unhandled promise rejections rather than report errors properly.

haggholm avatar Mar 20 '23 19:03 haggholm