Skip to content
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

Panic while uploading certain item attachments #667

Open
HiteshRepo opened this issue Feb 23, 2024 · 0 comments
Open

Panic while uploading certain item attachments #667

HiteshRepo opened this issue Feb 23, 2024 · 0 comments
Labels
Needs Attention 👋 question Further information is requested

Comments

@HiteshRepo
Copy link

HiteshRepo commented Feb 23, 2024

We encounter panic: were unable to deserialize while trying to upload attchements using below API:

client.
Users().
ByUserId(userID).
MailFolders().
ByMailFolderId(containerID).
Messages().
ByMessageId(parentItemID).
Attachments().
Post(ctx, body, nil)

client is of type *msgraphsdkgo.GraphServiceClient.

Below are couple of sample item attachement jsons for which we get the above panics:

However we do not get the issue for below:
non-nested item attachment #2

Please advise us in case there is something wrong with the structure/content of the item attachement jsons that is leading to the panic.
Or is there is any issue with any of the below libs:

In either case we should not be getting panics rather some appropriate error message.

@baywet baywet added question Further information is requested Needs Attention 👋 labels Feb 23, 2024
@rkodev rkodev self-assigned this Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Attention 👋 question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants