Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Any reason I cannot to connect to service and container? #2169

Open
wyxcoder opened this issue Oct 27, 2023 · 1 comment
Open

Any reason I cannot to connect to service and container? #2169

wyxcoder opened this issue Oct 27, 2023 · 1 comment

Comments

@wyxcoder
Copy link

wyxcoder commented Oct 27, 2023

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

@John0King
Copy link

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants