Open howardjones opened 1 year ago
Had some time to run this in the debugger this morning, and I can see that HttpxRequestAdapter does actually get back the odata object I'm looking for, then somehow fails to marshall it into an object. I don't know what a Parse Node Factory or Model Object Value is supposed to be or do, though.
I have the same issue. This looks like a bug in microsoft-kiota-serialization-json 0.3.5: https://github.com/microsoft/kiota-serialization-json-python/issues/83
Downgrading to 0.3.2 worked for me.
I wrote my own small client instead - having this be async made it far from a drop-in replacement for azure-graphrbac for my use-case. But I agree that seems to be the cause.
@howardjones Any chance you can confirm if this is still an issue in the latest stable release of the SDK?
@andrueastman It is still an issue with msgraph-sdk==1.5.4
@howardjones Any chance you can confirm if this is still an issue in the latest stable release of the SDK?
Sorry, I gave up on the library. Needed something that worked this last year! :-)
Python 3.10.12 and
msgraph-core==1.0.0a4
andmsgraph-sdk==1.0.0a12
, on Ubuntu 20 LTS.I'm trying to replace a working
azure-graphrbac
function with the replacement msgraph version - it's to find a displayName for Azure IAM Role Assignments. From the few examples for app-only usage, I thought this was what I needed, but I get an error from deep inside the library thatstr object has no attribute get
.From what I could tell the parameter to
by_directory_object()
is supposed to be a string. Theself.app_client
is the Graph object from this tutorial: https://learn.microsoft.com/en-us/graph/tutorials/python-app-only?tabs=aad&tutorial-step=5 which does successfully list users, but not call my function.Where am I going wrong? Having the library code be generated and the README just point to the REST API is quite frustrating.
Full stacktrace follows: