Skip to content

GetServiceAccountIssuerOpenID Unable to deserialize the response #969

@vturecek

Description

@vturecek

The methods that deal with Service Account issuer Open ID are unable to deserialize the response in the .NET client:

GetServiceAccountIssuerOpenIDConfigurationAsync
GetServiceAccountIssuerOpenIDKeysetAsync

The problem seems to be that both of these methods return a string. The JSON serializer is unable to deserialize the JSON response to a string type and so you get a JSON exception:

Microsoft.Rest.SerializationException: Unable to deserialize the response.\r\n ---\u003E Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: {. Path \u0027\u0027, line 1, position 1.\r\n  

I'm currently testing with cluster version 1.22.4, client package version 6.0.28, but even in the latest 8.0.12 package the return type is still a string. Is there a way to work around this, like getting the raw response without it trying to deserialize first?

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions