-
Notifications
You must be signed in to change notification settings - Fork 62
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
Object has no attribute 'get_all' when calling calendar.get_schedule.post() #451
Comments
same issue here when trying to execute the sample from code from: https://learn.microsoft.com/en-us/graph/api/application-list?view=graph-rest-1.0&tabs=python#example-3-use-filter-and-top-to-get-one-application-with-a-display-name-that-starts-with-a-including-a-count-of-returned-objects |
Same issue with this example when I try to modify the header in |
This was a problem for me as well posting updates to Tasks, example code here. I investigated and it appears there is a new class that contains the headers now "HeadersCollection", this is used by the base class "BaseRequestConfiguration". So when following documentation examples, it overrides the object with a normal dict, thus the method 'get_all' doesn't exist. Maybe Microsoft is too good for dicts now. I needed to do the following:
After:
Good luck, |
Adding some other findings regarding 'HeadersCollection' object/class. The headers are now very sticky. Example from documentation (fixed):
Seems like a lot of garbage code in my opinion, but editing the dict directly was not working for me.
|
In my case, changing this code:
to this:
solved the issue. |
I'm currently trying to get a room schedule through this code:
But when running I get an error coming from kiota
I'm currently running under this pyvenv:
And this are my packages version:
The text was updated successfully, but these errors were encountered: