Skip to content

.NET: [Bug]: Aspire DevUI does not work for the agent server with HttpsRedirection #6769

Description

@Kumima

Description

When the agent server has HttpsRedirection configured. The Aspire DevUI does not work. And the UI error is misleading like:

Image

I did take some investigation on source. The endpoint resolving is hard coded as http. So when the agent has https redirection, since the proxy client is configured as AllowAutoRedirect = false. That redirect response is directly sent back to the browser. The browser will take control the request, but that request is raw without handling the agent name prefix. 👈That's the reason why the UI error still has the prefix.

Then the things break. Is that AllowAutoRedirect = false intended? Or do we need to check https endpoint?

Code Sample

Error Messages / Stack Traces

Package Versions

Aspire.Hosting.AgentFramework.DevUI:1.11.1-preview.260625.1

.NET Version

.NET 10

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETUsage: [Issues, PRs], Target: .NetreproducedUsage: [Issues], Target: all issues that can be reproduced by the triage workflowtriageUsage: [Issues], Target: All issues that still need to be triaged

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions