Closed TTEarth closed 5 months ago
Looks like a bug in v1.3.0. Rolling back to v1.2.0 should unblock you until they address this: https://github.com/microsoftgraph/msgraph-sdk-python/issues/673
Thanks for your continued use of the SDK and for raising this. As we work to resolve this, Do you mind considering:
+from kiota_abstractions.base_request_configuration import RequestConfiguration
from msgraph import GraphServiceClient
from msgraph.generated.groups.groups_request_builder import GroupsRequestBuilder
graph_client = GraphServiceClient(credentials, scopes)
query_params = GroupsRequestBuilder.GroupsRequestBuilderGetQueryParameters(
filter = "startswith(displayName, 'a')",
count = True,
top = 1,
orderby = ["displayName"],
)
-request_configuration = GroupsRequestBuilder.GroupsRequestBuilderGetRequestConfiguration(
+request_configuration = RequestConfiguration(
query_parameters = query_params,
)
request_configuration.headers.add("ConsistencyLevel", "eventual")
result = await graph_client.groups.get(request_configuration = request_configuration)
This appears to be addressed in 1.4.0, closing.
I encountered the following error during practice.
File "c:\dev\msgraph\graph.py", line 39, in get_user request_config = UserItemRequestBuilder.UserItemRequestBuilderGetRequestConfiguration( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ AttributeError: type object 'UserItemRequestBuilder' has no attribute 'UserItemRequestBuilderGetRequestConfiguration'
I confirmed that the 'UserItemRequestBuilderGetRequestConfiguration' method is also used in the MS official documentation. How can I fix the error? Thank you~