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

How can I get a proto file to reference a message defined in another proto?

I am working with a gRPC service project that was generated by Visual Studio. I have two proto files located in the same "Protos" directory. I have one proto the has an import for the other proto file. It appears to find the file but I am not able…
2
votes
1 answer

Periodic Istio Citadel pod restart

Istio-citadel pods of istio 1.4.10 helm release, are restarted periodically. 2 replicas of istio-citadel are running. This happens once in every 4-5 days, when the number of CSR requests reaches 28.3k and memory reaches 9.8G. Memory increases…
2
votes
2 answers

What is the difference between NettyChannelBuilder and ManagedChannelBuilder

I am trying to understand the difference between ManagedChannelBuilder and NettyChannelBuilder. I came across this question but it only mentions details related to TLS configurations. Can someone explain the basic difference between the…
2
votes
1 answer

Using gRPC with Electron 14

I've inherited a web application, whose backend is written in Go Lang and uses gRPC and protocol buffers to communicate with the Angular 8 frontend. The old developer was using Wails to bind Go method to the frontend and to build an exe, as…
Rita Piscopo
  • 39
  • 1
  • 4
2
votes
1 answer

How do I connect to gRPC Server running on Raspberry Pi

I have a simple gRPC service(written in C#) running on my Raspberry Pi. I'm using Kreya to send a message and get a response back. It seems to only work if I send a message from a client running on the Pi but can't do the same from another computer.…
2
votes
2 answers

Why is Grpc client in python faster than c# and c++ clients

My grpc server is in VC++ and transfers 1 giga points (1e9) of data - where each point is 1, 2, 4 or 8 bytes of data depending upon the selected precision. I have 03 clients - one in each language - Cpp-14, Python-3.9 and C# (.net 5.0). C++ uses…
AkshayM
  • 317
  • 6
  • 18
2
votes
1 answer

Error: Failed to load gRPC binary module Expected directory: node-v88-darwin-x64-unknown Found: [node-v64-darwin-x64-unknown]

I have issue about missmatch node version for requirement load gRPC. This issue appear when i run node js server using pm2, but when i did it using nodemon and node command, it running well Error: Failed to load gRPC binary module because it was not…
rusli Abdul gani
  • 145
  • 1
  • 1
  • 7
2
votes
2 answers

Docker container fails to build when installing GRPC

I have a Dockerfile that when used with my docker-compose commands works fine, I'd like to have this docker container built however as GRPC takes 15 mins to install every time I want to run tests in GitHub Actions This is what my Dockerfile…
Lewis Smith
  • 1,271
  • 1
  • 14
  • 39
2
votes
1 answer

How to define a System.Security.Claims.ClaimsPrincipal as a request argument in gRPC?

I would like to build a authorization service using gRPC under .Net Code. In order to do that, I need to pass a System.Security.Claims.ClaimsPrincipal object as a request argument from caller to the server so the server can use it to authorize the…
Alexu
  • 1,015
  • 2
  • 12
  • 32
2
votes
1 answer

Reading a buffer from a json using boost

I have the following json…
Flav Scheidt
  • 105
  • 5
2
votes
1 answer

How to unit test gRPC asynchronous C++ client functions with google test

I'm trying to write unit tests for my C++ gRPC client, using google test. I'm using both synchronous and asynchronous rpc's, and I can't figure out how to use mock'ed version of asynchronous ones. In my .proto file I have: rpc foo(EmptyMessage)…
jviita
  • 114
  • 2
  • 11
2
votes
1 answer

Method not implemented!, "grpc_status":12

I have created a GRPC service and client. Service is working and hosted on port 5001 but the client is throwing GRPC error as Method not implemented. Server class CalculatorService(Calculator_pb2_grpc.CalculatorServicer): def SquareRoot(self,…
AnshulJain
  • 21
  • 2
  • 2
2
votes
1 answer

Tendermint, GRPC and C# - Stream terminated by RST_STREAM with error code: PROTOCOL_ERROR

I need Tendermint in one of my projects but have never used it before so I am trying to implement a very simple example from here first: https://docs.tendermint.com/master/tutorials/java.html but in C# (.NET 5.0). (Download: Minimal Example) I have…
rvnlord
  • 3,487
  • 3
  • 23
  • 32
2
votes
1 answer

grpc._channel._InactiveRpcError: _InactiveRpcError of RPC that terminated with: status = StatusCode.INTERNAL

This is a gRPC service & client python program. After running the client script it throwing this error. I am pretty new to using APIs/ gRPC in particular. It would be great if I get to know what might be the problem. Installed gRPC library & few…
2
votes
1 answer

Ruby gRPC server authentication SSL/TLS and a custom header with token

I need to connect to a server with authentication and a custom header. The official gRPC docs show how to do it in Python but not in Ruby: https://grpc.io/docs/guides/auth/#with-server-authentication-ssltls-and-a-custom-header-with-token How can…
Alex
  • 301
  • 1
  • 3
  • 10