msgraph-sdk-php icon indicating copy to clipboard operation
msgraph-sdk-php copied to clipboard

PATCH/PUT requests work but not returning deserialized response body

Open Ndiritu opened this issue 3 years ago • 3 comments

This is because we call sendNoContentAsync instead of sendAsync()

image

Ndiritu avatar Jun 13 '22 09:06 Ndiritu

Issue seems to be on metadata. The request returns a 200 & response body - https://docs.microsoft.com/en-us/graph/api/message-update?view=graph-rest-1.0&tabs=http#response-1 But metadata reflects wrongly reflects that a 204 with no response body is expected... image

Ndiritu avatar Jun 13 '22 09:06 Ndiritu

Affects file uploads as well.

Ndiritu avatar Jun 17 '22 11:06 Ndiritu

As of 2.0.0-RC9, PATCH requests return the deserialized response body

Ndiritu avatar Sep 28 '22 06:09 Ndiritu

PUT request with discrepancy (Uploading to OneDrive) has been logged https://github.com/microsoft/OpenAPI.NET.OData/issues/310

Ndiritu avatar Nov 17 '22 13:11 Ndiritu

Closed in last week's generation - https://github.com/microsoftgraph/msgraph-sdk-php/pull/1197

Ndiritu avatar Apr 11 '23 07:04 Ndiritu