davidfowl / AspireYarp

Yarp resource for Aspire.Hosting
64 stars 3 forks source link

When multiple URIs are specified in applicationUrl in launch settings, AppHost fails to detect that the dashboard is online. #1

Closed mitchdenny closed 7 months ago

mitchdenny commented 7 months ago

If your launch profile looks like this:

{
  "$schema": "
[http://json.schemastore.org/launchsettings.json"](http://json.schemastore.org/launchsettings.json%22)
,
  "profiles": {
    "http": {
      "commandName": "Project",
      "dotnetRunMessages": true,
      "launchBrowser": true,
      "applicationUrl": "
http://localhost:15089"
,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development",
        "DOTNET_ENVIRONMENT": "Development",
        "DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "
http://localhost:16275"

      }
    },
    "https": {
      "commandName": "Project",
      "dotnetRunMessages": true,
      "launchBrowser": true,
      "applicationUrl": "
https://localhost:17006;http://localhost:15089"
,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development",
        "DOTNET_ENVIRONMENT": "Development",
        "DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "
https://localhost:18234"

      }
    }
  }
}

... and you launch the https profile it won't work.