run-aspnetcore-microservices
run-aspnetcore-microservices copied to clipboard
Unable to load the service index for source
Team, I am getting below error in windows machine while running the docker compose command
[webstatus build 4/7] RUN dotnet restore "WebApps/WebStatus/WebStatus.csproj": 1.703 Determining projects to restore... 2.733 /usr/share/dotnet/sdk/5.0.408/NuGet.targets(131,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/src/WebApps/WebStatus/WebStatus.csproj] 2.733 /usr/share/dotnet/sdk/5.0.408/NuGet.targets(131,5): error : The SSL connection could not be established, see inner exception. [/src/WebApps/WebStatus/WebStatus.csproj] 2.733 /usr/share/dotnet/sdk/5.0.408/NuGet.targets(131,5): error : The remote certificate is invalid because of errors in the certificate chain: PartialChain [/src/WebApps/WebStatus/WebStatus.csproj]
[discount.grpc build 5/8] RUN dotnet restore "Services/Discount/Discount.Grpc/Discount.Grpc.csproj": 1.724 Determining projects to restore... 2.743 /usr/share/dotnet/sdk/5.0.408/NuGet.targets(131,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/src/Services/Discount/Discount.Grpc/Discount.Grpc.csproj] 2.743 /usr/share/dotnet/sdk/5.0.408/NuGet.targets(131,5): error : The SSL connection could not be established, see inner exception. [/src/Services/Discount/Discount.Grpc/Discount.Grpc.csproj] 2.743 /usr/share/dotnet/sdk/5.0.408/NuGet.targets(131,5): error : The remote certificate is invalid because of errors in the certificate chain: PartialChain [/src/Services/Discount/Discount.Grpc/Discount.Grpc.csproj]`
It is kind network restriction issue . Pls check your farewell policy- connect with netwrk admin /corporate network policy
Thanks,