Skip to content

Fix NotSupportedException when returning IEnumerable<ContentBlock> #615

Fix NotSupportedException when returning IEnumerable<ContentBlock>

Fix NotSupportedException when returning IEnumerable<ContentBlock> #615

Re-run triggered August 5, 2025 13:11
Status Failure
Total duration 5m 40s
Artifacts 6

ci-build-test.yml

on: pull_request
Matrix: build
publish-coverage  /  publish-coverage
publish-coverage / publish-coverage
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 6 notices
build (ubuntu-latest, Release)
Process completed with exit code 1.
ModelContextProtocol.Tests.McpJsonUtilitiesTests.DefaultOptions_CanSerializeIEnumerableOfContentBlock: /_/tests/ModelContextProtocol.Tests/McpJsonUtilitiesTests.cs#L50
System.NotSupportedException : JsonTypeInfo metadata for type 'ModelContextProtocol.Protocol.ContentBlock[]' was not provided by TypeInfoResolver of type '[ModelContextProtocol.McpJsonUtilities+JsonContext, Microsoft.Extensions.AI.AIJsonUtilities+JsonContext]'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.
build (ubuntu-latest, Debug)
Process completed with exit code 1.
ModelContextProtocol.Tests.McpJsonUtilitiesTests.DefaultOptions_CanSerializeIEnumerableOfContentBlock: /_/tests/ModelContextProtocol.Tests/McpJsonUtilitiesTests.cs#L49
System.NotSupportedException : JsonTypeInfo metadata for type 'ModelContextProtocol.Protocol.ContentBlock[]' was not provided by TypeInfoResolver of type '[ModelContextProtocol.McpJsonUtilities+JsonContext, Microsoft.Extensions.AI.AIJsonUtilities+JsonContext]'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.
build (macos-latest, Debug)
Process completed with exit code 1.
ModelContextProtocol.Tests.McpJsonUtilitiesTests.DefaultOptions_CanSerializeIEnumerableOfContentBlock: /_/tests/ModelContextProtocol.Tests/McpJsonUtilitiesTests.cs#L49
System.NotSupportedException : JsonTypeInfo metadata for type 'ModelContextProtocol.Protocol.ContentBlock[]' was not provided by TypeInfoResolver of type '[ModelContextProtocol.McpJsonUtilities+JsonContext, Microsoft.Extensions.AI.AIJsonUtilities+JsonContext]'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.
build (windows-latest, Debug)
Process completed with exit code 1.
ModelContextProtocol.Tests.McpJsonUtilitiesTests.DefaultOptions_CanSerializeIEnumerableOfContentBlock: /_/tests/ModelContextProtocol.Tests/McpJsonUtilitiesTests.cs#L49
System.NotSupportedException : JsonTypeInfo metadata for type 'ModelContextProtocol.Protocol.ContentBlock[]' was not provided by TypeInfoResolver of type '[ModelContextProtocol.McpJsonUtilities+JsonContext, Microsoft.Extensions.AI.AIJsonUtilities+JsonContext]'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.
build (windows-latest, Release)
Process completed with exit code 1.
ModelContextProtocol.Tests.McpJsonUtilitiesTests.DefaultOptions_CanSerializeIEnumerableOfContentBlock: /_/tests/ModelContextProtocol.Tests/McpJsonUtilitiesTests.cs#L50
System.NotSupportedException : JsonTypeInfo metadata for type 'ModelContextProtocol.Protocol.ContentBlock[]' was not provided by TypeInfoResolver of type '[ModelContextProtocol.McpJsonUtilities+JsonContext, Microsoft.Extensions.AI.AIJsonUtilities+JsonContext]'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.
build (macos-latest, Release)
Process completed with exit code 1.
ModelContextProtocol.Tests.McpJsonUtilitiesTests.DefaultOptions_CanSerializeIEnumerableOfContentBlock: /_/tests/ModelContextProtocol.Tests/McpJsonUtilitiesTests.cs#L50
System.NotSupportedException : JsonTypeInfo metadata for type 'ModelContextProtocol.Protocol.ContentBlock[]' was not provided by TypeInfoResolver of type '[ModelContextProtocol.McpJsonUtilities+JsonContext, Microsoft.Extensions.AI.AIJsonUtilities+JsonContext]'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.
build (macos-latest, Debug)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
build (macos-latest, Debug)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
build (windows-latest, Debug)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
build (windows-latest, Release)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
build (macos-latest, Release)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
build (macos-latest, Release)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520

Artifacts

Produced during runtime
Name Size Digest
testresults-macos-latest-Debug Expired
1.71 MB
sha256:e908a4809620585e0536f9c4b7cff2456c29f2ca305f7af7f372c329a4a79746
testresults-macos-latest-Release Expired
1.55 MB
sha256:ed3d640b40318c138a4296eacdb24133710bace57c2be880151605b592eaafdb
testresults-ubuntu-latest-Debug Expired
1.69 MB
sha256:24cdb4c25525d14bb93fb6817761294d0d1967a8a88588c29b700eb87771b1ba
testresults-ubuntu-latest-Release Expired
1.53 MB
sha256:2da673545aeedcf0f15d20667c1dc7d9470c6849a0336dbe62b4bdf487bd57be
testresults-windows-latest-Debug Expired
1.71 MB
sha256:e135adf57bf716d9c0fcfcbb5d90782f07ff6a6e44d2c2afc8418a57900e5048
testresults-windows-latest-Release Expired
1.53 MB
sha256:6344cefc70ecd7505f9a6bef4dfa401525c4434f28a0ea799b6f45aad4bf6669