Questions tagged [grpc-python]

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

gRPC is an open source remote procedure call (RPC) system initially developed at Google. It uses HTTP/2 for transport, Protocol Buffers as the interface description language, and provides features such as authentication, bidirectional streaming and flow control, blocking or nonblocking bindings, and cancellation and timeouts.

gRPC Basics - Python

401 questions
0
votes
1 answer

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 injecting it in grpc_secure_channel call. Also, we…
JavaMan
  • 465
  • 1
  • 6
  • 21
0
votes
0 answers

gRPC python socket_mutator

I am trying to make a gRPC client to use a specific exit interface. For that, I am setting the value for the "socket_mutator" in the channel_arguments. I defined a function that takes a socket as an argument and modifies it however I receive…
0
votes
1 answer

Python - Nested Singleton Classes

Is it possible to nest an arbitrary number Singleton classes within a Singleton class in Python? There's no problem in changing my approach to solving this issue if a simpler alternative exists. I am just using the "tools in my toolset", if you…
wisenickel
  • 346
  • 4
  • 16
0
votes
1 answer

Do we need to return Empty object if we set `google.protobuf.Empty` in grpc protobuf?

Here is my protobuf file: service gRPCComServeFunc { rpc sendFile(FileRequest) returns (google.protobuf.Empty) {} } My questions: Q1: I wonder does the receiver need to return an google.protobuf.Empty object to the sender or not (which means the…
david
  • 842
  • 2
  • 8
  • 25
0
votes
1 answer

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 (HelloReply); // Server Streaming rpc ParrotSayHello…
JavaMan
  • 465
  • 1
  • 6
  • 21
0
votes
1 answer

GRPC server on Mac not working when using laptop's actual IP address instead of localhost

I am following the GRPC tutorials here https://grpc.io/docs/languages/python/. In greeter_client.py over here - https://github.com/grpc/grpc/blob/master/examples/python/helloworld/greeter_client.py, instead of using with…
mndl
  • 17
  • 3
0
votes
2 answers

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 client: Traceback (most recent call last): …
0
votes
0 answers

How to use oneof in gRPC when chunking data

I am able to chunk data from client to server however before sending chunks of the data I'd like to send the hash of the complete dataset so when the server reconstructs the chunks it can verify whether the reconstructed data is correct or not. I've…
TecGuy94
  • 49
  • 1
  • 8
0
votes
0 answers

aiplatform.PipelineJob.submit() fails due to ServiceUnavailable: 503 failed to connect to all addresses

Trying to run a PipelineJob from local instance (local machine with windows, GCP CLI installed /local jupyter lab), but I'm getting _InactiveRpcError Traceback (most recent call last) The above exception was the direct cause…
0
votes
0 answers

how to send bytes from bloomrpc?

I defined .proto file like, test.proto syntax = "proto3"; package unary; service Greeter { rpc greet (Request) returns (Response) {} } message Request { bytes username = 1; } message Response { string message = 1; } and When i import…
0
votes
0 answers

Purpose of bytes type in GRPC?

Can anyone explain in detail what is the purpose of using bytes in grpc? or when we can used bytes in grpc? or in which scenario we can used bytes data type? any one can give example on it?
0
votes
1 answer

Python protofub: how to pass response message from one grpc call to another

I'm new to grpc/protobuf so please excuse any terminology errors in my question. I need to take a response from one gRPC request and feed it into the next request. I can't figure out how to populate the "spec" line. Proto file1: message…
New2Python
  • 325
  • 1
  • 4
  • 17
0
votes
0 answers

Communication between GRPC pods on Kubernetes

I have a pod running in Kubernetes, which serves as a GRPC server, which is listening on the port 50051, with a service that exposes this port (all of this is functional). For the next step, I am trying to Dockerize/containerize the client. The…
Johnney
  • 161
  • 1
  • 9
0
votes
1 answer

How to detect gRPC server is down from gRPC AIO python client

I've been facing this issue where I have a gRPC AIO python client sending bunch of configuration changes to the gRPC server, though it's a bi-directional RPC, client is not expecting any message from gRPC server. So whenever there is a configuration…
paul
  • 1
  • 1
0
votes
1 answer

Is there a way to sort python grpc response without using jSON?

Long story short I am building a python grpc client that interacts with another team's GRPC server. Does python's grpc module have any sorting features? response =…
New2Python
  • 325
  • 1
  • 4
  • 17