Questions tagged [grpc-go]

The Go implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.

385 questions
0
votes
1 answer

Empty Parameter For GRPC service method

I am a beginner in golang and GRPC. I am trying to use React as frontend , GRPC instead of API and GoLang as backend. I am just trying to pass two int64 parameter in add() service and return the sum but the parameter is always 0 when i try to log in…
Lal Kumar Rai
  • 327
  • 7
  • 21
0
votes
0 answers

GRPC, Golang, How to connect to alternate path to same server on network error

I have 2 servers, They have at least 2 interfaces, When one of the interface is down, I want to grpc to try next interface in same RPC call, for example N1 ip-eth0 <-- Path1 ---> N2 ip-eth0 N1 ip-eth1 <-- Path2 ---> N2 ip-eth1 In this case, while…
tushars
  • 53
  • 6
0
votes
1 answer

Sending ListBlog response in unary streaming

I am trying to return list of items from grpc without streaimg API and not finding any solution or example , I know we use this kind of proto file when using streaming message ListBlogResponse { Blog blog = 1; } and then Blog message Blog { …
Fatima Fahad
  • 95
  • 1
  • 9
0
votes
0 answers

Swagger-UI like API documentation tool for API written in Golang and consumes/produces protocolBuffer input/output

I am developing a web product with Rest APIs which is using protocol buffers in Golang. In my earlier products, we used Swagger for automated API documentation as they were using JSON for request/response. We are aiming at the same…
Bush
  • 261
  • 1
  • 11
0
votes
1 answer

Adding more http/2 connections in a grpc channel

There's a property called SocketsHttpHandler.EnableMultipleHttp2Connections in ASP.NET's grpc library which enables a channel to create additional http/2 connections when the concurrent stream limit is reached. Is there anything available in Go…
0
votes
2 answers

Grpc Error on Long Connections: Too Many Pings

I am building a system with a microservice architecture that communicates between services using grpc. I have a long running request in the beginning that hits a central endpoint that makes a bunch of requests to other services. The first request to…
MUAS
  • 519
  • 1
  • 7
  • 20
0
votes
2 answers

Error in generated code with protoc-gen-grpc-gateway

I'm new to Protocol Buffers and gRPC stuff. Now I'm trying to build a client/server architecture with grpc + grpc-gateway in Go. I tried to follow some examples but I always end up with the same problem. After generating the code with protoc i run…
0
votes
1 answer

How trace gRPC service (server side) in go using collector

I'm using a collector to trace my spans in my java services, this serivces are http and grpc. The collector endpoint is localhost:55680. This java services trace succesfully. Now, I want to use this collector to trace my go service based on gRPC. In…
victorpacheco3107
  • 822
  • 3
  • 10
  • 32
0
votes
2 answers

How to check deadlines in server middleware

Per doc, gRPC server could check deadlines as if ctx.Err() == context.Canceled { return status.New(codes.Canceled, "Client cancelled, abandoning.") } And I try to handle it in hello example // SayHello implements helloworld.GreeterServer func…
zangw
  • 43,869
  • 19
  • 177
  • 214
0
votes
1 answer

How to upload an image in chunks with client-side streaming gRPC using grpcurl

I have been trying to upload an image in chunks with client side streaming using grpcurl. The service is working without error except that at the server, image data received is 0 bytes. The command I am using is: grpcurl -proto image_service.proto…
0
votes
1 answer

Is there a command to send a grpc Go lang server to have it output all possible messages it accepts?

I am working on a grpc server and keep getting messages like "target server does not expose service (service name)" even though I think the name is correct. Is there a way (in development) to send a message asking the grpc server to just output all…
0
votes
1 answer

Best practice for separate message and service definitions in Go protobuf?

What's best practice for separating the declaration of messages used in services in (Go-specific) Protocol Buffers? The context is a large application with multiple gRPC services. Some messages are used in multiple services. The thought was to…
Scott Deerwester
  • 3,503
  • 4
  • 33
  • 56
0
votes
1 answer

How to generate Go gRPC code with the protobuf-gradle-plugin?

This question is the same as this one, How do I use gradle to generate go grpc code?, but since that hasn't been answered yet I'm asking it again. I've made a simplified Gradle project with a structure similar to the following: ├── build.gradle └──…
Kurt Peek
  • 52,165
  • 91
  • 301
  • 526
0
votes
1 answer

Unable to properly generate code with protoc-gen-go-grpc

golang and grpc newcomer here. I'm having issues with getting started with protobufs and grpc in golang. I'm assuming I made some stupid mistake somewhere. Here is some background information. $GOPATH\bin is in my $PATH I've installed the…
UCProgrammer
  • 517
  • 7
  • 21
0
votes
1 answer

x/net/http2: ConnState Unable to track

net/http package Server struct in the SDK have ConnState func(net.Conn, ConnState), But not exists in the 'Server' struct of 'x/net/http2' With the h2c feature, when the state variable is converted to http.StateHijacked , I will no longer know the…
fsyyft
  • 1