onedrive-api
onedrive-api copied to clipboard
Set throwHttpErrors to false in uploadSession
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.