All Questions
46 questions
0
votes
1
answer
196
views
Handle multiple gRPC server side streams in Python
I am quite deperate because I simply cannot find a solution for my problem.
Scenario
My python application acts as a gRPC server. The request that is made is a server side stream so the client asks ...
1
vote
0
answers
391
views
python gRPC authentication issues with a self signed certificates
Referred to the grpc docs: grpc docs and attempting secure authentication, I have already the certificate (.cert file), server URL, and credentials. Moreover, I am able to consume the gRPC proto using ...
0
votes
1
answer
438
views
How to prevent gRPC server in python from logging multiline traceback
I created a grpc server written in python. When ther is an error, I need to raise an exception in the server, this function in grpc/_servery.py fails with the raised exception. This is causing the ...
1
vote
1
answer
644
views
How do I build a grpc Enum invariant from an int in python?
I have a grpc method used to query the internal state of some remote object on the server. This internal state includes an enum for the status, which I have replicated in the expected gRPC response ...
0
votes
1
answer
746
views
gRPC channel reuse
One of the company's developers was fired and I had to start making a demand that was about to be made by that developer... anyway
I'm not a python developer and I'm learning little by little as I ...
0
votes
1
answer
514
views
gRPC client could not receive proper attribute when multiple enum is defined in one file
I defined two enum (AnsType and ErrorType) in a single .proto file and I used both of them in a message. However, the client can not parse both enum. Why does it happen and how can I solve it?
The ...
2
votes
3
answers
222
views
Whats the golang's `stream.Send()` equivalent in python grpc clients in bidirectional stream?
Lets say below is the proto for bi-directional stream
service RouteGuide {
// A Bidirectional streaming RPC.
//
// Accepts a stream of RouteNotes sent while a route is being traversed,
// ...
2
votes
0
answers
370
views
asyncio gRPC: Add properties to context from decorator or server interceptor
I'm trying to compute inforamtion from invocation_metadata and pass it to the func to avoid computing it again in the function. This worked with gRPC but when we implemented asyncio this doesn't work ...
2
votes
0
answers
1k
views
Implementing a grpc client in C# .Net Framework that connects to a Python 3 grpc server?
I am trying to write a grpc client in C# .Net Framework (4.7.x) that's supposed to connect to a Python (3.7) grpc server running on a RaspberryPi.
To ensure that my proto file is correct and that the ...
2
votes
0
answers
1k
views
How to fix ModuleNotFoundError for grpc?
I just started working on grpc with python and faced problem when I import grpc.
import grpc // no module named grpc
I'm working on vscode on my MacBook and have tried below to solve this.
...
0
votes
1
answer
134
views
Python gRPC Request <> Reply not defined
I am trying to setup an example Python gRPC example and have following proto file :
syntax = "proto3";
package greet;
service Greeter{
// unary
rpc SayHello (HelloRequest) returns (...
1
vote
2
answers
1k
views
Connect two machines using gRPC
I have a gRPC project that works correctly running server and client on the same machine, but when I try it using different machines in a same wifi network using IPV4, it occurs the following error on ...
0
votes
0
answers
890
views
How to keep bi-directional gRPC channel open from python client
I have defined a bi-dir gRPC streaming RPC for exchanging some configuration information with the server.
Server: Implemented in C++
Client: Implemented in python 3.10
The client opens channel with ...
2
votes
1
answer
7k
views
protoc-gen-gprc_python: program not found or is not executable
When I try to generate proto files using Python's grpc_tools.protoc library:
python -m grpc_tools.protoc -I protos --python_out=. --gprc_python_out=. protos/test.proto
it fails with the error
protoc-...
1
vote
0
answers
622
views
How to get the exact JSON structure returned in the gRPC response
This is an example illustrating the issue where I'm using Struct Class as datasets type:
import "google/protobuf/struct.proto";
message Datasets {
string meta_field = 1;
google.protobuf....