You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finally, this is the environment variable I pass to the container: SERVICES__legacy__https__0
I know I can fix it by passing the correct value directly to YARP via an environment variable called ReverseProxy__Clusters__legacy__Destinations__legacy-web__Address but I'd rather use the Service Discovery system.
I have the same error when wiring up a WebApplicationFactory, so I really think I'm doing some silly mistake, but I can't understand what. I think the issue is that locally (where it works) we use HTTP because Legacy is hosted via IIS Express and I don't want to care about the TLS certificate. In the cloud the URLs are all HTTPS.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My service has a reference to a legacy project and we use YARP to forwarded all mishandled requests to the legacy server.
Everything works as expected when running locally in Aspire but I'm not able to replicate the configuration to work once deployed.
This is the YARP configuration
And this is how we configure the WebApplicationBuilder
Finally, this is the environment variable I pass to the container:
SERVICES__legacy__https__0
I know I can fix it by passing the correct value directly to YARP via an environment variable called
ReverseProxy__Clusters__legacy__Destinations__legacy-web__Address
but I'd rather use the Service Discovery system.I have the same error when wiring up a WebApplicationFactory, so I really think I'm doing some silly mistake, but I can't understand what. I think the issue is that locally (where it works) we use HTTP because Legacy is hosted via IIS Express and I don't want to care about the TLS certificate. In the cloud the URLs are all HTTPS.
TBF, the management of HTTP/HTTPS endpoints is a bit clunky and obscure, even considering the documentation.
Beta Was this translation helpful? Give feedback.
All reactions