-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
Description
Describe the bug
Microsoft Graph's drive item content endpoint /drive/root/children/{driveItem-id}/content fails to generate a function in Semantic Kernel due to default serialization setting of depth of 64.
To Reproduce
It is easier to reproduce the error with API Manifest plugins due to availability of slicing. It uses OpenAPI path for function generation, so I built the repro on top of #4961, diff is here
Steps:
gh repo clone zengin/semantic-kernelgit checkout zengin/json-depth-testcd semantic-kernel/dotnet/samples/KernelSyntaxExamplesdotnet test --filter Example80_ApiManifest --logger "console;verbosity=detailed"- Observe the following error:
Error Message:
System.AggregateException : Plugin creation failed for DriveItemPlugin (The maximum configured depth of 64 has been exceeded. Cannot read next JSON object. Path: $ | LineNumber: 10780 | BytePositionInLine: 134.)
---- System.Text.Json.JsonException : The maximum configured depth of 64 has been exceeded. Cannot read next JSON object. Path: $ | LineNumber: 10780 | BytePositionInLine: 134.
-------- System.Text.Json.JsonReaderException : The maximum configured depth of 64 has been exceeded. Cannot read next JSON object. LineNumber: 10780 | BytePositionInLine: 134.
Expected behavior
A plugin function is generated for drive item content endpoint
Additional context
Solution here
Reactions are currently unavailable