Skip to main content

All Questions

Tagged with
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 ...
tiko's user avatar
  • 17
0 votes
0 answers
46 views

asyncio CancelledError error in python gRPC AIO client

I am using Python 3.8 and trying to run an example of a gRPC AIO client like the one below: async def run() -> None: global counter print('run') async with grpc.aio....
kusocodeing's user avatar
1 vote
1 answer
763 views

TypeError: Couldn't build proto file into descriptor pool: duplicate file name opentelemetry/proto/common/v1/common.proto in Docker

I'm encountering an issue when trying to build my Docker image. The error message I receive is: TypeError: Couldn't build proto file into descriptor pool: duplicate file name opentelemetry/proto/...
Abhi Kanimilli's user avatar
1 vote
0 answers
128 views

Why is my protobuf map field represented as RepeatedCompositeFieldContainer in the generated Python code?

I have a .proto file that defines a message with a map<string, string> field: syntax = "proto3"; message Message { map<string, string> map = 1; } After generating the Python ...
yoav.weber's user avatar
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 ...
Mandar Pande's user avatar
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 ...
rollingbees's user avatar
0 votes
1 answer
156 views

How to stream data in 4MB chunks using python (through grpc)

I hava a python grpc service that streams large amounts of data to client microservices. service GeoService { rpc GetGeoCoordinates(GetRequest) returns (stream Chunk){} } message Chunk { bytes ...
ABDULLOKH MUKHAMMADJONOV's user avatar
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 ...
Dash83's user avatar
  • 1,488
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 ...
Carlos Rodrigues's user avatar
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 ...
Tengerye's user avatar
  • 1,974
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, // ...
chinmay's user avatar
  • 879
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 ...
Tejo Vardhan Makineni's user avatar
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 ...
NiklasAtHouseOfTest's user avatar
4 votes
1 answer
4k views

"Connection reset by peer" in python gRPC

We are sending multiple requests to a gRPC server. But every once in a while we come across "Connection reset by peer" error with UNAVAILABLE status. GRPC server: NestJS Client: Python ...
AminAli's user avatar
  • 142
1 vote
1 answer
4k views

Python gRPC client error - Cannot check peer : missing selected ALPN property

I am writing a Python (version: 3.6.8) gRPC client to connect to envoy using SSL. I am using grpc.ssl_channel_credentials to specify root_certificates, private_key and certificate_chain, and then ...
JavaMan's user avatar
  • 534

15 30 50 per page
1
2 3 4 5