After calling the Microsoft Graph API using a call like this:
var driveItem = await _graphApiClient.Sites[SiteId].Drives[DriveId].Root.ItemWithPath(path)
    .Request().GetAsync();
I get:
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 ...
                Check whether you are calling your method using an await or async handler.
My example:
BEFORE
return Ok(graphManager.GraphMethod(request));
AFTER
return Ok(graphManager.GraphMethod(request).Result);
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With