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
on a relevant drive_id and item_path and check content. The function executes successfully, but content will be None.
Even though it used to work a couple days ago, using msgraph-sdk==1.62.0 did not work either.
SDK Version
1.63.0
Latest version known to work for scenario above?
1.62.0
Known Workarounds
Use requests library to get the file
Debug output
Click to expand log
```
</details>
### Configuration
_No response_
### Other information
_No response_
EDIT: Fixed by upgrading from msgraph-core 1.5.1 to msgraph-core 1.5.2!
We are experiencing the same issue recently. A stock graph service client receives None when trying to get the content of a drive item. The _should_return_none function in kiota_http.httpx_request_adapter does this:
returnresponse.status_code==204orresponse.status_code==304ornotbool(
response.content
) or (notresponse.headers.get("location") andresponse.status_codein [301, 302])
This returns True because for a 304 response with location header, the content is empty (which I think is valid). Removing the or not bool(response.content) fixes the issue, but I have no idea if that would break something elsewhere.
Activity
cfu94 commentedon Nov 26, 2026
EDIT: Fixed by upgrading from
msgraph-core1.5.1 tomsgraph-core1.5.2!We are experiencing the same issue recently. A stock graph service client receives None when trying to get the content of a drive item. The
_should_return_nonefunction inkiota_http.httpx_request_adapterdoes this:This returns True because for a 304 response with location header, the content is empty (which I think is valid). Removing the
or not bool(response.content)fixes the issue, but I have no idea if that would break something elsewhere.