Skip to content

Handle "Unexpected content type" in managed identity credential rather than crashing #35938

@xiangyan99

Description

@xiangyan99

DefaultAzureCredential stops unexpectedly with the message "ManagedIdentityCredential: Unexpected content type 'text/html; charset=UTF-8'." when using managed identity behind a proxy.

Let's make the DAC continue in the case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions