Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in deserialization of ApplicationTypes response #121

Open
andradf opened this issue Oct 6, 2023 · 1 comment
Open

Error in deserialization of ApplicationTypes response #121

andradf opened this issue Oct 6, 2023 · 1 comment

Comments

@andradf
Copy link

andradf commented Oct 6, 2023

I have a cluster running SF version 9.1.1653.9590. When I attempt to get the application types using the powershell http service fabric module, I get the following error
Get-SFApplicationType: Cannot process argument because the value of argument "obj" is null. Change the value of argument "obj" to a non-null value.

StackTrace  :
   at System.Management.Automation.PSObject..ctor(Object obj)
   at Microsoft.ServiceFabric.Powershell.Http.GetApplicationTypeCmdlet.FormatOutput(Object output)
   at Microsoft.ServiceFabric.Powershell.Http.GetApplicationTypeCmdlet.ProcessRecordInternal()
   at Microsoft.ServiceFabric.Powershell.Http.CommonCmdletBase.ProcessRecord()

Looking through the code and examining the http response body it seems like the issue is that the client library is deserializing the field ManagedKeyVaultReferenceParameterList incorrectly.
The HTTP response contains a property with name ManagedKeyVaultReferenceParameters while the deserialization performed in ApplicationTypeInfoConverter expects it to be ManagedKeyVaultReferenceParameterList.

This leads to the exception in Get-SFApplicationType due to ManagedKeyVaultReferenceParameterList being null instead of an empty array and being passed to the PSObject constructor.

@andradf andradf changed the title Error in Deserialization of ApplicationTypes response Error in deserialization of ApplicationTypes response Oct 6, 2023
@jeffj6123
Copy link
Member

@andradf We are looking into this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants