eShopOnContainers icon indicating copy to clipboard operation
eShopOnContainers copied to clipboard

Any reason I cannot to connect to service and container?

Open wyxcoder opened this issue 8 months ago • 1 comments

When I use docker compose up, I can connect service like web status with localhost:5107. But when I start it in Visual Studio 2022. I cannot connect to any although the containers all up and good. Any idea?

Thanks

wyxcoder avatar Oct 27 '23 02:10 wyxcoder

I have the reverse result , I can open the web page when I use visual studio with F5/Ctrl+F5 , but there alway be some service can not connect to rabbitMQ or Sqlserver when I use command docker compose build + docker compose up
and there is a service called "src-webshoppingagg-1" faild with flow exception.

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: uriString
   at System.Uri..ctor(String uriString)
   at Microsoft.eShopOnContainers.Web.Shopping.HttpAggregator.Startup.ConfigureServices(IServiceCollection services) in /src/src/ApiGateways/Web.Bff.Shopping/aggregator/Startup.cs:line 39
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at Microsoft.eShopOnContainers.Web.Shopping.HttpAggregator.Program.Main(String[] args) in /src/src/ApiGateways/Web.Bff.Shopping/aggregator/Program.cs:line 18

I'm wonder what/where is the environment variables it used , and what visual studio do before docker start!

John0King avatar Nov 07 '23 08:11 John0King