-
Notifications
You must be signed in to change notification settings - Fork 231
Error message not parsed for attachment bigger than 4Mb #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@darrelmiller sorry to ping you but linked to this issue I spotted a dead zone in attachment creation. For file smaller than 4 Mb, we should use route
For file bigger than between 3Mb & 150 Mb, we should use the beta route
The first route is actually not limiting the byte size of the file but For this kind of file, the first route will result in:
The second route will result in:
I believe this is linked to the API limitation itself. So if I there is a better place to post this issue, let me know. |
I did some more tests, and range of size having this issue seems smaller. createFile.js Usage:
|
@OlivierCuyp are you still experiencing this problem? |
Related to #359. |
Bug Report
Prerequisites
For more information, see the
CONTRIBUTING
guide.Description
The route [POST]
/users/${userId}/messages/${messageId}/attachments
only support attachment up to 4 Mb.https://docs.microsoft.com/en-us/graph/api/message-post-attachments?view=graph-rest-1.0&tabs=http
When trying to POST bigger file than 4 MB the error returned from the API doesn't seem to be well parsed. Code & message are
null
.Console Errors:
Steps to Reproduce
/users/${userId}/messages
/users/${userId}/messages/${messageId}/attachments
Expected behavior: It would be nice to have an error message saying
Attachment size limit exceeded
in the errorActual behavior: No message, no interesting info in the error
Additional Context
Usage Information
SDK Version - [SDK version you are using]
The text was updated successfully, but these errors were encountered: