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

GRPC reverse proxy confusing GRPC and GRPC-Web

I have a reverse proxy. Here I reverse proxy to api.example.com and grpc.example.com:443 . My api domain is working, but when I make a request to grpc.example.com:443, grpc perceives it as grpc-web and sends a request as…
2
votes
1 answer

How do I pass a json body request to api in a map string data structure in Golang?

I am new to golang and grpc, need guidance and clarification. I have below definition as a parameter to call a POST request for an external API. params := map[string]string{ "movie": movie, "seat": seat, "pax":…
2
votes
2 answers

GRPC Permission denied on Google Pub/Sub [ERROR 7]

I would like to publish message to a topic on Google Cloud pubsub. But I get a Error: 7 PERMISSION_DENIED, I'm running on localhost trying to publish to a regular Cloud PubSub. I instantiate the client and get the topic I want to publish on: import…
2
votes
0 answers

Pass information from the RPC function to gRPC server interceptor in Go

I'm trying to pass some information about how an RPC call is performed from the RPC function itself to the unary server interceptor. How can I achieve this? The RPC server: func (s *myServer) Get(ctx context.Context, in *MyRequest) (*MyResponse,…
svakili
  • 1,909
  • 4
  • 19
  • 24
2
votes
1 answer

Using Postman with gRPC

I've got the following "hello world" gRPC serivice working in a c#, VS 2022 console client calling both http and https endpoints; but I get errors when using Postman for Windows (ver 9.21.3) calling the same endpoints. proto: service Greeter { //…
inliner49er
  • 1,300
  • 1
  • 11
  • 19
2
votes
1 answer

Access information about the request and response payloads in grpc-go's stat/HandleRPC

I am using stats/HandleRPC() to emit some metrics about the RPC duration, when I receive the stats/End data, and I want to tag the metrics with some information that can be extracted from the incoming and outgoing payloads. What would be the best…
svakili
  • 1,909
  • 4
  • 19
  • 24
2
votes
0 answers

Deluge client not passing through nginx grpc

I have a Deluge client (in a docker container - that's likely irrelevant). I want to be able to connect to the daemon from the outside world while having it behind a reverse proxy. I don't necessarily need TLS, but I suspect http2 may require…
Dan
  • 175
  • 1
  • 13
2
votes
1 answer

gRPC: How to use dynamically typed values?

I'm trying using gRPC dynamically typed values but with the little information about their usefulness, It's almost impossible to do this... So I will show the image/code that I have problems and the questions that are eating my brain gRPC Method…
José Leal
  • 75
  • 11
2
votes
1 answer

gRPC Proto Buff URL/URI type

Is there a way to use Url or Uri data type inside a message of gRPC? And if not what is the best way to do this? I am using gRPC and Protocol Buffers for this and I run a backend go app to trigger popup notifications that display in my Flutter app.…
2
votes
1 answer

Protobuf permission issue when install grpc

I am following the instructions from https://grpc.io/docs/languages/cpp/quickstart/ in order to install grpc using cmake, but I run into a permission issue. Running gRPC C++ protocol buffer compiler on…
Mike
  • 3,775
  • 8
  • 39
  • 79
2
votes
0 answers

Is there a performance disadvantage in using multiple gRPC streams between the same client and server instead of one in C#?

Imagine you want to stream multiple protobuf message types from a server to the same client. There are different ways to design the streaming service, e.g. assuming I want to stream 3 different types of messages, for example notifications, states…
dan-kli
  • 568
  • 2
  • 13
2
votes
0 answers

python google-cloud-speech: SSL error through gRPC proxy

I'm developing an integration with Google STT (Speech to Text) API in which we had to develop a gRPC "proxy" written in Python in front of it. Now we are trying to add integration tests to invoke this "proxy", but we are experiencing SSL…
Maxime Gélinas
  • 2,202
  • 2
  • 18
  • 35
2
votes
1 answer

undefined reference to `Example::Note::~Note()' protobuf

I Written a very simple program in protobuf without services at all but when i run the code it throws erros like Example::Note::~Note() all information are given below please tell me where i'm making mistake. example.proto syntax =…
Jocefyneroot
  • 137
  • 1
  • 11
2
votes
1 answer

Are there rules for gRPC port number?

I am currently developing an application which will expose both REST an gRPC endpoints. I need to set a port for the gRPC server. Are there any rules for the port number? Any special ranges other than the standard for REST services?
MiBuena
  • 451
  • 3
  • 22
2
votes
1 answer

What version of GRPC can I use to build with c++98 for WinCE?

I would like to build GRPC for WinCE with the c++98 std. What is the last Version where it is working? Is there one? I heared, that Google Protobufs last version for c++98 is the v3.5.1 is that correct? Thanks in advance! :)
Jona
  • 21
  • 1