Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.25k stars 4.58k forks source link

[BUG] GetServiceFabricClusters / Iterating over clusters results in exception #38666

Closed 23min closed 9 months ago

23min commented 12 months ago

Library name and version

Azure.ResourceManager.ServiceFabric 1.0.1

Describe the bug

When listing the Service Fabric Clusters in a resource group, an execption occurs which results in no clusters retrieved.

Expected behavior

GetServiceFabricClusters results in a collection of clusters that can be iterated over.

Actual behavior

Exception occurs

Message: Error:

One of the identified items was in an invalid format.

Stack trace:

   at Azure.ResourceManager.ServiceFabric.Models.ClusterAadSetting.DeserializeClusterAadSetting(JsonElement element)
   at Azure.ResourceManager.ServiceFabric.ServiceFabricClusterData.DeserializeServiceFabricClusterData(JsonElement element)
   at Azure.ResourceManager.ServiceFabric.ServiceFabricClusterCollection.<GetAll>b__10_1(JsonElement e)
   at Azure.Core.PageableHelpers.PageableImplementation`1.<GetEnumerator>d__17.MoveNext()
   at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
   at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at System.Linq.SystemCore_EnumerableDebugView`1.get_Items()

Reproduction Steps

Unsure whether any specific conditions need to be satisfied for this. We have a ServiceFabric cluster in our subscription. Redacted JSON from Resource Explorer is available if needed.

Environment

.Net 6 Azure Functions v4 Subscription is hosted in northeurope

jsquire commented 12 months ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

dvbb commented 9 months ago

Hi @23min

at Azure.ResourceManager.ServiceFabric.Models.ClusterAadSetting.DeserializeClusterAadSetting(JsonElement element)

Based on the Stack trace you showed, this is a deserialization issue, it is some actual response values do not match the SDK-defined type, could you provide the response body to help us quickly find the issue?

github-actions[bot] commented 9 months ago

Hi @23min. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

github-actions[bot] commented 9 months ago

Hi @23min, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!