microsoft / kiota-abstractions-dotnet

Abstractions library for the Kiota generated SDKs in dotnet
https://aka.ms/kiota/docs
MIT License
24 stars 21 forks source link

URI propertery getter on RequestInformation throws Method not found: 'System.String Std.UriTemplate.Expand(System.String, System.Collections.Generic.Dictionary`2<System.String,System.Object>) #170

Closed nschulte-contractor-pepsico closed 6 months ago

nschulte-contractor-pepsico commented 6 months ago

Found when calling through Microsoft.Graph .NET SDK:

System.MissingMethodException HResult=0x80131513 Message=Method not found: 'System.String Std.UriTemplate.Expand(System.String, System.Collections.Generic.Dictionary2<System.String,System.Object>)'. Source=Microsoft.Kiota.Abstractions StackTrace: at Microsoft.Kiota.Abstractions.RequestInformation.get_URI() at Microsoft.Kiota.Abstractions.Authentication.BaseBearerTokenAuthenticationProvider.<AuthenticateRequestAsync>d__7.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<GetHttpResponseMessage>d__34.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<SendAsync>d__201.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Graph.ServicePrincipals.ServicePrincipalsRequestBuilder.d__14.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

andrueastman commented 6 months ago

Thanks for raising this.

This is tracked in Microsoft.Graph .NET SDK via https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2260 and should be resolved on this repo on the release of https://github.com/microsoft/kiota-abstractions-dotnet/pull/171