You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errors thrown during a LargeFileUploadTask are not wrapped with GraphError.
Please correct me if I'm wrong, but I was expecting all errors from the API to be wrapped in that class.
In our case, this happened when running multiple uploads, but I think the specific error is irrelevant.
Not sure what to add here, I think this applies to any error during an upload task. We're experiencing this when trying to send multiple emails at once, all with attachments. This causes the MailboxConcurrency error to be thrown.
Expected behavior:
Error to be an instance of GraphError.
Actual behavior:
Error is actually the response object returned by the API.
Additional Context
I've tried to track this down, but it's my first time actually browsing the SDK code.
Thanks @alexandru-neacsu07 for reporting! @koros to look and provide feedback on this issue. While this happens @alexandru-neacsu07, would you be willing to submit a PR to fix this issue? Thanks!
Bug Report
Prerequisites
Description
Errors thrown during a
LargeFileUploadTask
are not wrapped withGraphError
.Please correct me if I'm wrong, but I was expecting all errors from the API to be wrapped in that class.
In our case, this happened when running multiple uploads, but I think the specific error is irrelevant.
Screenshots:
You can see in the screenshot that the "error object" is just the direct response from the API:
https://learn.microsoft.com/en-us/graph/errors#json-representation
Steps to Reproduce
Not sure what to add here, I think this applies to any error during an upload task. We're experiencing this when trying to send multiple emails at once, all with attachments. This causes the
MailboxConcurrency
error to be thrown.Expected behavior:
Error to be an instance of
GraphError
.Actual behavior:
Error is actually the response object returned by the API.
Additional Context
I've tried to track this down, but it's my first time actually browsing the SDK code.
msgraph-sdk-javascript/src/tasks/LargeFileUploadTask.ts
Line 260 in 0f8eb69
GraphResponseHandler.convertResponse
:msgraph-sdk-javascript/src/GraphResponseHandler.ts
Line 95 in 0f8eb69
else
branch and directly throws the response from the API:msgraph-sdk-javascript/src/GraphResponseHandler.ts
Lines 176 to 179 in 0f8eb69
Usage Information
Request ID - Value of the
requestId
field if you are receiving a Graph API error responseSDK Version - 3.0.6
The text was updated successfully, but these errors were encountered: