C
C#•2w ago
TauFrisch

About .Net Aspire WithExternalHttpEndpoints()

Hi I'm adding Aspire orchestration to my solution which only contains a WebApi with a bunch of REST endpoints. But when I launch it over the AppHost, I'm unable to reach the rest endpoints (note: when a launch the project seperatly and place all connections string myself, everything works just fine). So obviously I have not understand a key point about aspire Routing :catderp: then I created a little dummy project with just one postgres container and plain Identity Endpoints to test it ... and the same result. I hope somebody can help me :nekojail:
No description
6 Replies
davidfowl
davidfowl•2w ago
Can you share a video of what goes wrong?
TauFrisch
TauFrischOP•6d ago
Hi, sure 🙂 First you see a snipped where I run the WebApi project directly
TauFrisch
TauFrischOP•6d ago
And this is the way it behaives, when I launch it with Aspire.
TauFrisch
TauFrischOP•3d ago
@davidfowl do you have any idea? I guess I'm missing some sort of MacOS specific setup?
davidfowl
davidfowl•3d ago
Looks like it mostly works but you’re running into https://github.com/dotnet/aspnetcore/issues/57332
GitHub
Server URLs in OpenAPI document are incorrect when application used...
Is there an existing issue for this? I have searched the existing issues Describe the bug When an OpenAPI document is being used as part of an application running with .NET Aspire, the servers arra...
TauFrisch
TauFrischOP•2d ago
Thank's, that totally fixed it
Want results from more Discord servers?
Add your server