Service Discovery Endpoint Not Resolving from Client Side Code #3818
-
|
Probably expected, but while attempting to write a demo application for Aspire that utilizes SignalR, I have discovered using the service discovery endpoint in a web application (client side code) for an api service hosting the hub that it is unable to connect to the hub. The address I get CORS errors utilizing the
I could probably use the C# client on server and have a pass through hub to the client, but this feels a bit heavy handed. Another choice maybe is yarp or something else to reverse proxy traffic to all the replicas. I am just curious what the recommendation from the team might be on this. Here is my client side code currently (nothing fancy, straight from MS Learn): Server side (apiservice): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 19 replies
-
|
Yes, this is expected. Service discovery only works when HTTP client is resolving the address. Do you have 2 different processes? |
Beta Was this translation helpful? Give feedback.




Turns out using
dotnet runworks as expected. I am going to guess this is a rider plugin issue.