Error 501: when uploading a new file #894
Labels
Status: No Recent Activity
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
type:bug
A broken experience
Describe the bug
I'm trying to replicate the HTTP example with the Python SDK as here:
But I get a 501 error with message
Expected behavior
The file should be uploaded, but I believe there is a problem in the way the
drive_item_id
is built in theby_drive_item_id
method.How to reproduce
SDK Version
No response
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```msgraph.generated.models.o_data_errors.o_data_error.ODataError:
APIError
Code: 501
message: None
error: MainError(additional_data={}, code='notSupported', details=None, inner_error=InnerError(..., message='Cannot upload content to an item representing a folder.', target=None)
The text was updated successfully, but these errors were encountered: