-
Notifications
You must be signed in to change notification settings - Fork 39
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
Comments
@andrueastman @rkodev @baywet any update on this? We are getting a panic where e.g a "dimensions" property on a File in a Drive of type Photo is a string, and not a float. Based on this discussion in Should I create a separate issue for this? |
@saviorand Would you be able to provide the JSON you’re passing in and how are you generating the JSON? |
Apologies I see your examples. Can you verify your version of the JSON serializer is the latest and where you able to pinpoint what key is causing the issue? After a cursory glance I don’t see any that appear like the expected error case I outlined. |
@saviorand As suggested by @michaeldcanady, Any chance you can confirm this is happening if you have the latest version of the sdk? |
@michaeldcanady @andrueastman I am on just tried running it again, I'm getting when I run this in the debugger, the error is thrown here:
Is this not the latest version? I think I just did |
Here is the file (photo) I'm using if it's helpful, but I'm sure the issue can be reproduced with any file that has a string representation of an integer in the "orientation" field |
@saviorand what version of the JSON serializer are you using? |
@michaeldcanady I am just calling msgraph-sdk-go , kiota-serialization is an indirect dependency for me. Looks like it's at 1.0.8 in my go.mod |
@andrueastman this is related to #685, the workload (OSDP) updated the service to return ints. |
@baywet am I right to assume this might take a while for that team to get back with a fix? Based on the discussion in the other issue. |
@saviorand yes, even when the teams are reactive and prioritize the work, the deployment takes weeks. |
@saviorand Any chance you can confirm the api you are calling in this scenario? msgraph-sdk-go/models/photo.go Line 176 in bd43bef
However the original issue was calling the attachments api as below. client.
Users().
ByUserId(userID).
MailFolders().
ByMailFolderId(containerID).
Messages().
ByMessageId(parentItemID).
Attachments().
Post(ctx, body, nil) We may need to follow up with the ODSP team again about this depending on which API is being called. |
@andrueastman @baywet yup it's in the Photo model, and this is the call I'm making where it panics, so the Drive API |
Thanks for the info @saviorand Looks to be the exact scenario as #685. Following up with the relevant team at https://portal.microsofticm.com/imp/v5/incidents/details/544783286/summary and will give feedback once we get confirmation on the current state of things here. |
@andrueastman thanks a lot! |
We encounter
panic: were unable to deserialize
while trying to upload attchements using below API: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.
The text was updated successfully, but these errors were encountered: