Questions tagged [grpc-dotnet]

gRPC for .NET! gRPC is a modern, open source, high-performance remote procedure call (RPC) framework that can run anywhere. gRPC enables client and server applications to communicate transparently, and simplifies the building of connected systems. https://learn.microsoft.com/en-us/aspnet/core/grpc/?view=aspnetcore-3.0

87 questions
0
votes
0 answers

grpc_health_probe timeout with dotnet GRPC API

I'm running a dotnet GRPC API (recipients-api) and I want to use grpcui to test it. Both services are been declared on a docker-compose file. I'm declaring grpcui as a dependant service of recipients-api, and as I need it to be fully available…
Oscar
  • 13,594
  • 8
  • 47
  • 75
0
votes
0 answers

Mixing Rest api endpoints with grpc on azure app services in the same project. ECONNREFUSED

We are trying to add grpc to an existing project which contains sevral rest api endpoints. The app in question is hosted on azure app service. Please note: gRPC on azure app service is still in Public Preview feature at the time of writing. We…
Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
0
votes
1 answer

Server GRPC core Implementation of GRPC.core in .NET framework 4.8

Samples for grpc.core server implementation in .NET framework 4.7 We are planning to migrate from .NET framework to .NET core (.NET6). As part of this migration, we want to first move to grpc.core from WCF. When we searched for sample service…
0
votes
0 answers

gRPC problem with Windows 11 and IIS: Grpc.Core.RpcException: 'Status(StatusCode="Internal", Detail="Failed to deserialize response message.")

gRPC problem with Windows 11 and IIS: Grpc.Core.RpcException: 'Status(StatusCode="Internal", Detail="Failed to deserialize response message.") I am trying to host my gRPC service in IIS. But i get this error. "Grpc.Core.RpcException:…
0
votes
0 answers

Reflection & Health Services Don't Work in .NET Framework gRPC Server

I start a gRPC server in a command line application using .NET framework as target. The gRPC server binds my own custom service and the reflection and health services. I can successfully call my own service (FoobarService) by importing the .proto…
Marteng
  • 1,179
  • 13
  • 31
0
votes
1 answer

"The server committed a protocol violation" exception is thrown when using grpc-net client and grpc (google's) server on an unsecured channel

I am trying to set up a grpc-net client on a .net standard 2.0 project that is connected via an insecure channel to a grpc server running google's implementation. The server side is running on a .NET 6.0 console app with google's grpc…
MisterT
  • 1
  • 2
0
votes
1 answer

How to generate POCOs and interfaces from proto files

My requirement maybe a bit of 'weird' in many people's opinion: So given a proto file like bellow: message HelloRequest { string name = 1; } message HelloReply { string message = 1; } service Greeter { rpc SayHello (HelloRequest) returns…
NextStep
  • 1,035
  • 3
  • 14
  • 18
0
votes
0 answers

C# Receive result from cancelled grpc call

I have two services communicating via gRPC (A calls B) with a cancellation token of X seconds. The B service might take longer to process the request than the allowed time. In such cases, I'd like to return a partial result if any and receive it…
Jaka Konda
  • 1,385
  • 3
  • 13
  • 35
0
votes
0 answers

Grpc client factory client doesn't wait for service to start

I am using Grpc.Net version : Grpc.AspNetCore 2.27.0 Dot net core version : Asp.Net Core 3.1 Project Sdk for Grpc service ="Microsoft.NET.Sdk.Web" Project Sdk for Grpc client ="Microsoft.NET.Sdk" Target framework : netcoreapp…
0
votes
0 answers

How to get rid of compiler warnings in ASP.NET Core gRPC integration test projects

I have an ASP.Net Core gRPC project that I'd like to run integration tests on. As such, I set up an integration test project. My directory structure looks something like this: - src - MyService.Grpc - Protos - my-service.proto -…
rexcfnghk
  • 14,435
  • 1
  • 30
  • 57
0
votes
1 answer

Set headers for grpc-web call

I'm currently facing an issue with grpc-web, and a loadbalancer. Trying to call our grpc webservices from our gateway API, results in the following error: Status(StatusCode="Unknown", Detail="Bad gRPC response. HTTP status code: 411") It appears…
Christian A
  • 483
  • 1
  • 10
  • 23
0
votes
1 answer

grpc-dotnet client: excessive memory usage

I have a gRPC client integration which recieves messages which are about 65MB in size (date x time tuple arrays mainly). Deserializing the received message seems to allocate about 700MB of extra unmanaged memory on the initial request. Subsequent…
Efrain
  • 3,248
  • 4
  • 34
  • 61
0
votes
1 answer

Cannot access RpcException trailers in the client

I'm sending trailers from the server to the client, but on the client I can't access these trailers. Server: // UserContract.cs public Task GetUserAsync(UserDto userDto, CallContext context = default) { try { throw new…
Guilherme Molin
  • 308
  • 4
  • 13
0
votes
1 answer

GRPC - Do I need to dispose or close the IService when I finish using it?

IService service = MyGrpcChannel.CreateGrpcService(); long[] ids = service.GetIds(); Do I need to do something to close/destroy the IService when I finish to use it?
Guilherme Molin
  • 308
  • 4
  • 13
0
votes
1 answer

Is it Possible to use only one gRPC Channel for 2 Pair Client/Server

I have a use case that force me to use 2 Pair Client/Server, for some illustration : I have 2 processes which each of two are playing Client / Server Role, for this reason I have to create 2 Pair Client/Server. My Question to minimize the overhead…
fofo
  • 31
  • 3