Questions tagged [grpc]

A general RPC (Remote Procedure Call) framework over HTTP/2, initially developed at Google. gRPC is a language neutral and platform neutral framework that allows users to write applications where independent services can work with each other as if they were native. It uses Protocol Buffers as the interface description language.

Links

Related Tags

6316 questions
2
votes
1 answer

NestJS gRPC empty return

I am learning something new with NestJS and gRPC. I'm just running into a problem. I have created an auth microservice and a gateway but I get an empty response back. The gateway and the microservice are triggered. but I get an empty object back. If…
Jur Dekker
  • 151
  • 3
  • 11
2
votes
3 answers

How to solve the conflict between C++ enum and define

base.h is the basic library in my framework and cannot be modified. // base.h #ifndef OK #define OK 0 #endif grpc.h is the code segment of the open source framework. // grpc.h namespace grpc { enum StatusCode { OK = 0 }; } Could main.cc run…
2
votes
1 answer

Difference between sync and async gRPC

I am working on a service based on gRPC, which requires high throughput. But currently my program suffers low throughput when using C++ synchronous gRPC. I've read through gRPC documentations, but don't find explicit explanation on the difference…
Tinyden
  • 524
  • 4
  • 13
2
votes
1 answer

Envoy Proxy with GRPC Server Streaming throwing UNAVAILABLE: upstream request timeout

We are having GRPC client and GRPC server with service side streaming support. rpc LotsOfReplies(HelloRequest) returns (stream HelloResponse); GRPC server is running behind the Envoy proxy with GRPC configuration. The problem is when we connect…
Rahul Tokase
  • 1,048
  • 9
  • 25
2
votes
1 answer

Bazel Remote Cache not working with certificates/TLS

I'm runnig Bazel remote cache from https://github.com/buchgr/bazel-remote inside docker, by runnig the following commands to start the http and grpc server: docker pull buchgr/bazel-remote-cache docker run -u 1000:1000 -v /path/to/cache/dir:/data -p…
Maf
  • 696
  • 1
  • 8
  • 23
2
votes
0 answers

grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated

In colab, While doing the last part of cognitiveai.org/2020/09/08/… that means from client part: !python /content/ranking/tensorflow_ranking/extension/examples/tfrbert_client_predict_from_json.py \ …
2
votes
1 answer

How do I query a gRPC endpoint?

This might be a stupid question, but I am struggling to figure out what exactly gRPC does. I have this endpoing access-mainnet-beta.onflow.org:9000 (https://docs.onflow.org/access-api/) that I would love to access, but I do not necessarily want to…
Allan
  • 21
  • 2
2
votes
2 answers

Spring native erro on execute builded image

I'm doing a test project in which I'm trying to implement AOT with GRPC, it can compile the image through paketo but when running the generated image it shows the error: "Native reflection configuration for io.grpc.netty.…
2
votes
1 answer

ServiceStack Grpc - Generate proto file without invoking types/proto endpoint

I have a .Net Core 3.1 Grpc application created using ServiceStack framework. ServiceStack provides a way to auto-generate .proto files through /types/proto endpoint. It internally invokes GrpcProtoGenerator class to generate .proto file. It also…
Manik_trs
  • 51
  • 3
2
votes
0 answers

AutoMapper ProjectTo() can't construct protobuf RepeatedField<> property

I have an gRPC application with EF core as ORM. AutoMapper's ProjectTo method is used to construct DTOs. But I get error when constructing collection properties. I prepared the following example: Database entities: public sealed class Horse { …
Maksim
  • 45
  • 6
2
votes
1 answer

Handle client-side cancellation in gRPC python asyncio?

Question first, context below. How can I perform some server-side action (eg, cleanup) based on a cancellation of an RPC from the client with an async gRPC python server? In my microservice, I have an asyncio gRPC server whose main RPCs are…
brunston
  • 1,244
  • 1
  • 10
  • 18
2
votes
2 answers

No functional channel service provider found. Try adding a dependency on the grpc-okhttp, grpc-netty, or grpc-netty-shaded artifact

I am trying to run Quarkus application in native mode. It works fine when run on jvm, but it crashes just after the start when run natively. Already tried different versions of io.grpc.* libraries, but with no luck. I am using Quarkus 2.0.1.Final,…
dgebert
  • 1,235
  • 1
  • 13
  • 30
2
votes
2 answers

google.protobuf.Any field with grpc is always nil

I am using gRPC with golang. I have a very simple proto definition and a gRPC service. The proto definition has a field in Endorsement of type google/protobuf/any. gRPC service is unable to map this field to input value and it's always getting…
Nitish Bhardwaj
  • 1,113
  • 12
  • 29
2
votes
2 answers

Dapr .Net SDK Problem with InvokeMethodGrpcAsync() gRPC Invocation

I have an app started in Dapr that has a gRPC service. Starting Dapr with id MyGrpcApi001. HTTP Port: 55319. gRPC Port: 55320 I have started it with the following command: dapr run --app-id MyGrpcApi001 --app-protocol grpc --app-port 5000 -- dotnet…
tridy
  • 1,166
  • 1
  • 12
  • 21
2
votes
2 answers

How to configure proxy credentials for google pub sub gRPC calls?

I am trying to connect to the google cloud platform pub/sub from behind a proxy. Using Spring lib "org.springframework.cloud:spring-cloud-gcp-starter-pubsub" which uses the google pub sub client, which in order to make the pull call for the…
iulishkiri
  • 56
  • 6
1 2 3
99
100