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

Difference between GRPC KeepAlive and TCP Keepalive

HTTP2 and GRPC support a keepalive feature (not to be confused with http 1.1 keepalive header). https://github.com/grpc/grpc/blob/master/doc/keepalive.md This feature periodically send Ping request and receive ping response to check if the…
skyde
  • 2,816
  • 4
  • 34
  • 53
2
votes
1 answer

Documenting a gRPC API

One can document a REST API with OpenAPI. Is there a similarly clean and standardized way of documenting gRPC APIs? E.g. specify what values an endpoint is expecting, what the return values mean, etc. The service definitions in a .proto file do not…
selamba
  • 384
  • 4
  • 12
2
votes
1 answer

Missing CMAKE_ASM_NASM_COMPILER when compiling gRPC with MS visual studio

I am trying to build gRPC C++ (1.48.0) with Visual Studio 2022 on Windows 10. It's a CMake build (cmake 3.22.22011901-MSVC_2) I was able to build everything else but am stuck at BoringSSL. The relevant CMakeList is trying to…
Dr Phil
  • 430
  • 5
  • 17
2
votes
0 answers

Python gRPC with MTLS : failed to connect to all addresses

I tried to test gRPC communication with mTLS, but the following error occurred. error message grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.UNAVAILABLE details =…
H-mount
  • 21
  • 1
2
votes
0 answers

PubSub message streaming interrupted - 502:Bad Gateway

I have a backend that consistently pulls message from a PubSub subscription and this has been working well up until a couple of weeks ago. For the past 2-3 weeks the streaming process frequently stopped and refused to restart. When I looked into the…
2
votes
2 answers

Cross Compile grpc with cmake

I'm trying to cross compile grpc. Intel x86 host; Target is an arm architecture. It's a display running yocto linux. My build system is working for other projects. Boost does compile, and other binaries compile an run well. I export the following…
Bil_Bomba
  • 183
  • 1
  • 8
2
votes
1 answer

Which windows server version does support unix socket

I'd like to use Inter-process communication with gRPC (which is based on unix socket). From AF_UNIX comes to Windows : Beginning in Insider Build 17063, you’ll be able to use the unix socket (AF_UNIX) address family on Windows to communicate…
Manuel
  • 1,985
  • 3
  • 31
  • 51
2
votes
1 answer

how intercept and stub the response of a rpc call in react with cypress

I want to intercept a rpc call that I made to the api in my react app. I'm using a custom hook that receives the buffer and the rpc method that I want to call and returns the data(something like react-query useQuery hook). The thing is because of…
Parsa
  • 79
  • 1
  • 10
2
votes
1 answer

How to set up a GCP Global External HTTP(S) LoadBalancer for gRPC?

I have created a google cloud load balancer: configuration. The backend is an unmanaged instance group. For example, it consists of one VM. The gRPC service is deployed on the VM (port 443). gRPC health checks are successful. But the gRPC client…
2
votes
1 answer

Ways to wait if server is not available in gRPC from client side

I hope who ever is reading this is doing well. Here's a scenario that I'm wondering about: there's a global ClientConn that is being used for all grpc requests to a server. Then that server goes down. I was wondering if there's a way to wait for…
broski2022
  • 45
  • 1
  • 7
2
votes
1 answer

How to force multiple file generation steps to be sequential in Visual Studio

Issue: I have a C# project which relies on the use of two file generation packages: Package 1 autogenerates some .proto files for me (my own package) Package 2 generates C# classes from the .proto files (Grpc.Tools NuGet package) The solution…
localghost
  • 329
  • 1
  • 4
  • 11
2
votes
1 answer

Add tags/prefix to gRPC method to distinguish private and public methods

I would like to have some kind of tags / prefix on gRPC methods to distinguish private and public methods, so I can easily setup interceptor which will have condition based on that. Example: message ItemData { int32 id = 1; string title = 2; …
2
votes
0 answers

.NET 6 GRPC on raspberry pi

Background - i am writing a project managing sort of an enclosed area dispatching automated vehicle using .NET 6 and raspberry pi, the Pi received instructions using Wi-Fi, manages the motion system using a PLC (Programmable Logic Controller),…
doronweiss
  • 69
  • 2
2
votes
1 answer

GRPC - The HTTP/2 server sent invalid data on the connection. HTTP/2 error code 'PROTOCOL_ERROR when upgrading from .netcore 3.1 to net5 or net6

I have a .netcore3.1 test project which calls a GRPC service. The service is only available via HTTP. I cannot change the service now. When I update the project to .net5-windows or .net6-windows (literally only a csproj change), the calls fail with…
Bartosz
  • 4,406
  • 7
  • 41
  • 80
2
votes
1 answer

java.net.SocketException: Invalid argument: connect with BungeeCord

I wrote a Java dependency that uses gRPC to connect to a server. Using this dependency in my spigot plugins and plain java projects works fine, but using it in BungeeCord plugins produces the following exception: Caused by:…
oniumy
  • 23
  • 5