-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YARP proxy not forwarding to origins #2
Comments
I'm getting similar with P6 and configuration file based setup. I get a 502 error and there's also an SSL Certificate error in the logs. |
@davidfowl were you able to reproduce the problem detailed in the issue? |
@Kralizek I was able to fix this by adding :
To all of my clusters. It then started working again. |
Adding this solved the issue with the hostname in the link, but I still get a redirect...
EDIT: adding the following solved the redirect issue. var proxyBuilder = builder.Services
.AddReverseProxy()
.ConfigureHttpClient((context, handler) => handler.AllowAutoRedirect = true); |
Hi,
The YARP proxy is not forwarding the call to the origins.
I created a repro of the issue here: https://github.com/Kralizek/AspireYarpIssueRepro
The project includes:
The AppHost program file looks like this:
When I run the solution
I get the following on the dashboard
Unfortunately, when I navigate to http://127.0.0.1:63438/weatherforecast (that should be forwarded to https://localhost:7270/weatherforecast) I get redirected to https://api:7270/weatherforecast.
Similarly, when I navigate to http://127.0.0.1:63438/legacy/weatherforecast (that should be forwarded to https://localhost:7018/weatherforecast), I get redirected to https://api:7270/legacy/weatherforecast.
I wasn't able to reproduce the issue with the transformation as explained here. I'll keep investigating on why it doesn't work on my main project.
Thanks for your help!
The text was updated successfully, but these errors were encountered: