The Go implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.
Questions tagged [grpc-go]
385 questions
3
votes
3 answers
rpc error: code = Unimplemented desc = RPC method not implemented
I have been trying to create a grpc client in Go and I have followed the correct instructions as shown in the official grpc site. When I start my grpc server written in node.js, the connection works well but upon compiling the protocol buffer in Go…

Ian Duncan
- 31
- 1
- 1
- 5
3
votes
1 answer
Does gRPC checks CRLs/OSCP Responders during TLS handshake?
During a mutual client-server authentication with gRPC+protobuf, is there a CRL and/or OSCP Responder check of the status of the certificate?
I need to be sure that I can revoke the certificate on my PKI and that subsequent calls will be blocked…

Arkon
- 2,648
- 6
- 26
- 46
3
votes
0 answers
How can I decode intercepted gRPC requests/responses to view the sent/received protobuf messages in golang?
I am intercepting the raw gRPC requests/responses going across a UNIX socket (the containerd socket using the cri-api, using eBPF to perform the interception) and I want to work out what is being sent/received. I have access to the .proto file used…

dippynark
- 2,743
- 20
- 58
3
votes
4 answers
How to connect to deployed grpc-server by ip address and host
I want to connect to deployed grpc server
by given ipaddress and host like 192.168.0.1:50032
i tried many stuff but as i checked grpc recommendation to
have grpc client but i want to try how to post via postman or any
by grpc interfaces server.…

Yabetsu2018
- 133
- 1
- 15
3
votes
2 answers
Session and remote IP address in grpc-go
In grpc-go, when implementing a service, the service interface defines methods contains only Context and Request. From the source of the Context, it is as simple as
type Context interface {
Deadline() (deadline time.Time, ok bool)
Done()…

DANG Fan
- 854
- 11
- 21
2
votes
1 answer
POST to Gin fails when it comes from my Android app, but succeeds when from Postman
I'm not quite sure which side is the cause of the issue, but it seems that the request gets received by Gin but doesn't allow the request from the android app. The endpoint I'm trying to POST to is related to a monolith model which has a type…

rminaj
- 560
- 6
- 28
2
votes
0 answers
how to set string list into metadata using grpc in dart
I have a golang grpc server. The metadata definition in grpc golang is a struct of map[string][]string, which can get a string list value with a given key.
but in my dart(flutter app) client, the dart grpc metadata definition is a struct of…

Antiphy Initializator
- 41
- 1
- 4
2
votes
0 answers
How to get custom header from metadata of incoming request in grpc-gateway
Here is my CORS policy set to have a custom header
return http.ListenAndServe(":"+port,
handlers.CORS(handlers.AllowedHeaders([]string{"X-Requested-With", "Content-Type", "Authorization","Custom-header"}),
…

Shehzab Ahammad
- 117
- 8
2
votes
0 answers
Convert golang struct to proto
I'm doing a request validation in my api gateway using golang validator from the struct.
type User struct {
DigitalId string `json:"digital_id" validate="required,len=16"`
Role string `json:"role" validate:"required,oneof=customer seller…

Atikah
- 21
- 1
2
votes
1 answer
How to represent golang "any" type in protobuf language
am using a protobuf definition file to create golang classes
file.proto
message my_message {
data = 1 [json_name = "data"]
}
generated.go
type MyMessage struct {
data any
}
I have checked out Struct , Value and Any, though…

SpartanX1
- 201
- 2
- 8
2
votes
1 answer
GRPC metadata not updating in Go
I'm trying to write a unary interceptor to add a request ID to incoming requests:
func RequestIDInterceptor(ctx context.Context, req interface{},
info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (val interface{}, err error) {
newCtx…

Woody1193
- 7,252
- 5
- 40
- 90
2
votes
2 answers
What's purpose of initializing a struct as a pointer?
Zap initializes its default option struct as follows in its grpc interceptor:
var (
defaultOptions = &options{
levelFunc: DefaultCodeToLevel,
shouldLog: grpc_logging.DefaultDeciderMethod,
codeFunc: …

user159566
- 81
- 4
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…

Mansur Berbero
- 41
- 9
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
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