проблемы, с пониманием, что я не так в урл, прописываю ?
//grpc C# server docker команды:
docker build -t server-app .
docker run -it -p 7272:80 —name= server-app
//grpc c# клиент
var channel = GrpcChannel.ForAddress("https://server:7272", new GrpcChannelOptions() { HttpClient = httpClient });
скрин grpc C# сервера:
`
$ docker run -it -p 7272:7272 --name server sample-server
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://[::]:80
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: /app/
`
то, что выдал C# grpc клиент в dockere:
`
Unhandled exception. Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="Error starting gRPC call. HttpRequestException: Name or service not known (server:7272) SocketException: Name or service not known", DebugException="System.Net.Http.HttpRequestException: Name or service not known (server:7272)
---> System.Net.Sockets.SocketException (0xFFFDFFFF): Name or service not known
`
у вас проблемы с DNS
Обсуждают сегодня