Replies: 3 comments
-
Would you please be able to put together a small repro in a GitHub repo and share the link here so that we can take a look? That way we can look at the complete picture.
|
Beta Was this translation helpful? Give feedback.
-
@mitchdenny Repro for my case is here https://github.com/murh-lego/aspire-test/tree/main |
Beta Was this translation helpful? Give feedback.
-
So what is going on here is that the web app is binding to 5000/5001 and Aspire is starting a reverse proxy on 5000 - so a conflict is occuring. Aspire will want to dynamically assign a port to your app via the In this case you can opt out of all that by doing this: builder.AddProject<Projects.WebApplication1>("webapplication1", null)
.WithHttpEndpoint(name: "rest", port: 5000, isProxied: false)
.WithHttpEndpoint(name: "grpc", port: 5001, isProxied: false); The If you want to retain the proxy you'll need to make your port allocations dynamic. The |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have grpc and rest on single service. I'm overriding kestrel url and take specific ports.
Service configuration:
In preview 4 we used the following code to expose this port (say 5000) and it worked fine:
Now in preview 5 with new breaking changes, it doesn't seem to work anymore with any setup I try.
My assumption is this should just straight up work:
As I see in the dashboard env vars for my service is that the
http
endpoint is being mapped correctly, and also it's setting endpointsIsExternal = true
flagHowever, I get nothing when accessing
http://localhost:5000
😢What gives 🤔 I'd appreciate some guidance 😄
Beta Was this translation helpful? Give feedback.
All reactions