Questions tagged [grpc-gateway]
68 questions
2
votes
1 answer
Setting grpc metadata in http request
I am trying to create REST endpoints for an existing gRPC service using grpc-gateway. The gRPC service makes use of "metadata" passed in grpc calls to authenticate.
How do I set the metadata in my REST calls?
I have tried passing metadata key value…

Anshul Prakash
- 301
- 2
- 15
2
votes
0 answers
How to intercept and forward GRPC call based on content of message
I want to be able to forward a RPC call to a different implementation based on the content of a message.
I've research GRPC interceptors but the website doesn't have a good explanation on this. I can't seem to find good documentation on the…

Avba
- 14,822
- 20
- 92
- 192
1
vote
0 answers
protobuf go gateway protoreflect.ProtoMessage (missing method ProtoReflect)
I'm having problem with this error
protoreflect.ProtoMessage value in return statement: *HelloReply does not implement protoreflect.ProtoMessage (missing method ProtoReflect)
Indeed there is no ProtoReflect method in the generated files that command…

Shibbaz
- 11
- 2
1
vote
0 answers
how to dynamically configure custom ingress controller rules for golang grpc gateway service
i am currently discarding traefik ingress controller and writing the golang code.
i need help in understanding how to configure the ingress controller rules dynamically from grpc request and then forward to appropriate backend grpc server.
following…

Abhishek D K
- 2,257
- 20
- 28
1
vote
0 answers
How to enable gRPC-Gateway in Kotlin
I wanted to test out gRPC to potentially swap our existing system to work with it.
The issue
I cloned grpc-kotlin to use their examples and chose to set up hellowworld example.
Following all the steps, I initialized the server and everything worked…

nsinnyc
- 11
- 2
1
vote
1 answer
proto grror when generating gateway protoc-gen-grpc-gateway: program not found or is not executable
I have found similar posts but they are rather old and they sadly did not solve my issue.
I am trying to add a Gateway for my GoLang GRPC services
PROJ_PATH=${CURDIR}
.PHONY: proto
proto: ## Generate protobuf code
# Compile proto files inside the…

Mike3355
- 11,305
- 24
- 96
- 184
1
vote
1 answer
How to extract path from user request in golang grpc-gateway
i have a question. Is it possible to extract via metadata path from user request.
Here i have my proto file with defined method.
rpc AllPath(google.protobuf.Empty) returns (google.protobuf.Empty) {
option (google.api.http) = {
get:…

Kacper Łęczyński
- 61
- 6
1
vote
1 answer
Grpc-gateway: how to deal with non-json request body?
Grpc-gateway offers solutions for customizing response body using google.api.HttpBody (non-json content type like text/plain, application/xml, etc), however, this proto message cannot deal with request body.

vincenthuangwz
- 21
- 3
1
vote
1 answer
Protobuf 3 optional vs FieldMasks
Now that protocol buffers 3 has support for optional fields which lets you test whether the field was set or not, are FieldMasks still useful?
For instance, when implementing an Update method in gRPC which allows the client to update only the fields…

niltz
- 1,014
- 11
- 28
1
vote
1 answer
Sending chunked data a grpc ServerStream
I have this RPC defined
rpc Download(DownloadRequest) returns (stream google.api.HttpBody)
I'd eventually like to use this to serve both CSV and binary data, but I'm starting with CSV.
In my handler I am doing the following to repeatedly grab the…

Jason
- 99
- 6
1
vote
2 answers
How to Transcode HTTP DELETE with Request Body to gRPC
I'm new in using gRPC with proto3, and I've used Transcoding HTTP/JSON to gRPC to migrate existing http endpoints to grpc.
But I have http DELETE request with request body. I have tried following and got an error.
Grpc Endpoint :
rpc…

nipuna
- 3,697
- 11
- 24
1
vote
0 answers
grpc-gateway service not responding to grpcurl or curl
I have created a basic service with grpc-gateway. This is what my .proto file looks like
syntax = "proto3";
package health;
option go_package = "github.com/userl/brw/api/health";
import "google/api/annotations.proto";
service Health {
//…

tmp dev
- 8,043
- 16
- 53
- 108
1
vote
1 answer
grpc-gateway: how to set allowed content-type per request
I'm using grpc-gateway inside same go app, to proxy convert HTTP to GRPC. As far as I see by default grpc-gateway sets application application/json format for all rpcs, including streaming.
So, my task is:
Incoming HTTP requests MUST always be…

Artsiom Miksiuk
- 3,896
- 9
- 33
- 49
1
vote
1 answer
How to implement gRPC Gateway in a node backend
I'm trying to implement gRPC gateway in a Node.JS server following the installation guide.
The steps are writen for golang but I tried to do in Node.JS.
I found this response, and also some packages like this one so is possible implement in…

J.F.
- 13,927
- 9
- 27
- 65
1
vote
1 answer
Returning Html as Response from grpc-gatway
Is there is a way i can return the content-type= " application/html" from the server.
grpc-gateway returning the response in key-value pair and browsers are unable parse it.
Proto Defination:
rpc Create (RegId) returns (Resp);
message RegId {
…

user1844634
- 1,221
- 2
- 17
- 35