microsoftgraph / msgraph-sdk-dotnet

Microsoft Graph Client Library for .NET!
https://graph.microsoft.com
Other
699 stars 248 forks source link

[Client bug]: graphServiceClient.GroupSettingTemplates.Request().GetAsync() fails with error #679

Closed kalyankrishna1 closed 4 years ago

kalyankrishna1 commented 4 years ago

Describe the bug Just a single call to

graphServiceClient.GroupSettingTemplates.Request().GetAsync() or graphServiceClient.GroupSettings.Request().GetAsync(); throws exception

'Microsoft.Graph.IGraphServiceGroupSettingTemplatesCollectionPage' on 'Microsoft.Graph.GraphServiceGroupSettingTemplatesCollectionResponse.Value' is not supported.'

or

System.NotSupportedException: 'The collection type 'Microsoft.Graph.IGraphServiceGroupSettingsCollectionPage' on 'Microsoft.Graph.GraphServiceGroupSettingsCollectionResponse.Value' is not supported.'

To Reproduce Steps to reproduce the behavior:

  1. Import the latest SDK and initialize it with an Auth provider
  2. The first call itself will fail
  3. Scroll down to '....'
  4. See error

Expected behavior It should return the collection of groupSettingTemplates or groupSettings

Screenshots If applicable, add screenshots to help explain your problem.

Client version 3.3.0.0

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

kalyankrishna1 commented 4 years ago

Closing as this was caused by upgrading to a preview version of the following

system.Text.Json system.Text.Encoding.Web

which is referenced by Microsoft.Graph.Core