grpc-go Questions
3
Solved
Solving protoc-gen-go: unable to determine Go import path problem by adding a "M" argument
Same symptom as protoc-gen-go: unable to determine Go import path for "simple.proto"
For simple proto file with following content.
syntax="proto3";
package main;
message Pers...
Suppressive asked 4/5, 2022 at 4:27
3
The problem:
I am getting this error while receiving message in grpc:
rpc error: code = ResourceExhausted desc = grpc: received message larger than max (8653851 vs. 4194304)
What I tried:
I g...
4
My original use-case:
I am building an application in GO with a gRPC server (using protobuf), and wrapping it inside an HTTPS server (using gin). Only the HTTPS server is being published to the cl...
Lambertson asked 21/4, 2020 at 18:3
2
Solved
I am having a hard time figuring out protoc command and go plugin.
What is the different between:
protoc \
# Directory where you want the compiler to write your Go output.
--go_out=.
# vs ?
--g...
11
Solved
I have an existing project in Go where I'm using Protocol buffers / gRPC. Until recent the go_package option was optional and the resulting Go package name would be the same as the proto package na...
Offutt asked 7/5, 2020 at 20:7
2
Solved
I am trying to understand how Go context cancellation works underneath in client service communication (say, any gRPC API call ).
Let's say a client canceled the context on its end. Does it result ...
4
Solved
I have a grpc server (in Go) that has a valid TLS certificate and does not require client side TLS. For some reason I can not implement the client without mTLS in Python, even though I can do so in...
Ruthenium asked 13/5, 2022 at 13:10
2
Solved
I would like to know, how flow control works in a client-streaming gRPC service in Go.
Specifically, I am interested in knowing when will a call to stream.SendMsg() function in the client-side bl...
2
I need to write a unit test for a function, which in its source code calls a gRPC method of a different gRPC service. My test results in a panic error because that gRPC service is not running on my...
1
Solved
Hey I'm trying make a small test client with Go and Grpc,
opts := grpc.WithInsecure()
cc, err := grpc.Dial("localhost:9950", opts)
if err != nil {
log.Fatal(err)
}
The WithInsecure()...
1
Solved
TLDR: I am looking for a way to update headers on an open stream for each call to stream.Send(msg) without closing the stream and opening a new one.
Summary
I have a GRPC client and server built to...
3
Recently, grpc-go introduced the mustEmbedUnimplemented*** method.
It is used for forward compatibility.
In simple terms, I am unable to understand how it is helping and how earlier without it what...
Hellbent asked 30/11, 2020 at 18:18
2
Solved
I'm working with a GRPC service hosted with HTTPS and self-signed cert. When I connect using syntax like:
const client = new productService('https://grpc-server-xxx.com:9090',
grpc.credentials.cre...
1
Solved
I can get the string value of a Protobuf enum with this instruction:
str := testPB.Status_ENABLED.String()
How can I perform the inverse operation? (from a string, get the enum element).
Bonin asked 3/8, 2021 at 20:27
2
Solved
I am relatively new to GRPC and want to be sure that I am doing connection management correctly with golang. I don't want to have to create a new connection for every call but I also don't want to ...
3
I set up a series of gRPC requests and responses which all work fine, but I'm stuck when I try to get the client IP address and user-agent who is calling my gRPC APIs.
I read the Go gRPC documenta...
3
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 work...
1
Solved
I'm attempting to connect to a Go GRPC Server from a C# Client but the client channel is failing to connect to the server.
I would expect that there should be no issues in connecting to a GRPC se...
1
Solved
I'm a bit confused about protoc-gen-go vs protoc-gen-go-grpc. I know that:
protoc-gen-go contains that code for the serialization/deserialization of protobuf messages
protoc-gen-go-grpc contains t...
Enthuse asked 13/11, 2020 at 21:7
2
I had read this answer: https://stackoverflow.com/a/56943771/6463558, it says that there is no way to run gRPC server and HTTP server at same address and port using grpc-node package.
But I can cre...
1
I am new to Go and still learning it every signle day. I see a lot of context cancelled error in our project which is kind of annoying me. So i was thinking to dig a little deeper to figure out wha...
2
Solved
I am trying come up with better ways to deal with the 4mb message size limit in grpc. I need a way to measure the size of the grpc response received on client side. When the response exceeds 4mb li...
Arquit asked 9/12, 2019 at 9:27
2
Solved
I'm writing my first API endpoint in GoLang using GRPC/proto-buffers. I'm rather new to GoLang.
Below is the file I'm writing for my test case(s)
package my_package
import (
"context"
"testing"...
Unfreeze asked 23/5, 2020 at 10:32
2
I have been recently experimenting with gRPC error handling and wanted to pass in my own proto message to the client (defining my own error details and internal error codes). After searching around...
0
We are developing a high frequency trading platform and in one of our components we have implemented the grpc with golang. And we needed to use bidirectional streaming in one of our usecases , we m...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.