小编Nel*_*and的帖子

为什么我在调用 Graph API 时会收到 NotSupportedException?

使用如下调用调用 Microsoft Graph API 后:

var driveItem = await _graphApiClient.Sites[SiteId].Drives[DriveId].Root.ItemWithPath(path)
    .Request().GetAsync();
Run Code Online (Sandbox Code Playgroud)

我得到:

System.NotSupportedException: Serialization and deserialization of 'System.Action' instances are not supported. Path: $.MoveNextAction.
 ---> System.NotSupportedException: Serialization and deserialization of 'System.Action' instances are not supported.
   at System.Text.Json.Serialization.Converters.UnsupportedTypeConverter`1.Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
   at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
   at ...
Run Code Online (Sandbox Code Playgroud)

microsoft-graph-api

4
推荐指数
1
解决办法
3651
查看次数

标签 统计

microsoft-graph-api ×1