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

How to access the method name in a Python gRPC handler

I'm trying to access the method name service/Method from within the a gRPC handler. I can't seem to find this data on the grpc.ServicerContext object (and I'm pretty sure it isn't there). My next thought was to use an interceptor since the method…
0
votes
0 answers

Dataflow job has stopped acknowledging any message

We've got a Dataflow pipeline where the input comes from a PubSub topic sending json objects. The dataflow processes them with apache beam using a one-minute window to merge all the objects into one file every minute in a google cloud storage…
0
votes
1 answer

GRPC Async + Blocking Stub Java

I am running into a bit of a chicken and an egg problem. Case: A file is generated on a remote client. The client should transmit the file to the server over an asynccstub. The client must also transmit metadata via a blocking stub to be stored in…
Equinox
  • 15
  • 1
  • 6
0
votes
2 answers

How does gRPC handle multiple overlapping requests?

Let us say, a gRPC client makes two requests R1 and R2 to gRPC server, one after the other (assume without any significant time gap, i.e R2 is made when R1 is still not served). Also, assume that R1 takes much more time than R2. In this case, should…
sv2311
  • 65
  • 2
  • 10
0
votes
1 answer

How does communication between 2 microservices with grpc work?

Let's say you have an application like a bookstore, and you split it into two simple microservices in the backend -> Microservice 1: Book purchasers (with Accounts) Microservice 2: Book list. Let's say you make a request from the front end, goes…
TheRoadLessTaken
  • 531
  • 2
  • 7
  • 15
0
votes
0 answers

python etcd3 raising grpc._channel._InactiveRpcError

I'm using the this module [1]: https://github.com/kragniz/python-etcd3 to communicate with etcdv3. I have created all the necessary certs and tested client secure connection with curl. However atempting a simple get operation fails. Code snippet and…
dcrearer
  • 1,972
  • 4
  • 24
  • 48
0
votes
1 answer

cant find grpc server using socket.getservbyport

my goal is to communicate with my gRPC server (enabled reflection) with client that is not familiar of server proto file, for that i need to find the server using port number only. im trying to find my gRPC server using socket.getservbyport and get…
0
votes
1 answer

Python gRpc GetTopChannels returns empty channels

I used the channelz to debug my gRpc service, but I always find that the GetTopChannels returns empty. Environment Linux 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux Python gRpc 1.27.2 Python 3.7.3 I have tried the offical…
Hanaasagi
  • 219
  • 3
  • 7
0
votes
1 answer

Android java-grpc client to python-grpc server

I am running into issues with android java-grpc where it can connect to the GRPC server (does not timeout) however claims that the services are unavailable. I have tested the server from python to python on two different machines and they are able…
Equinox
  • 15
  • 1
  • 6
0
votes
1 answer

Cannot delete from datastore emulator

I have this simple piece of code: from google.cloud import datastore import requests ds_c = datastore.Client(_http=requests.Session) for entity in ds_c.query(kind='Kind').fetch(): ds_c.delete(entity.key) I am…
maininformer
  • 967
  • 2
  • 17
  • 31
0
votes
1 answer

Why gRPC Python does not see first field?

Python gRPC message does not serialize first field. I updated protos and cleaned everything many times but it is not fixed. You can see logs, settings_dict has stop field but after passing these fields to AgentSetting it is not seen in logs and…
madogan
  • 605
  • 7
  • 11
0
votes
1 answer

Separating private key and certificate from azure key vault certificate

Using Azure Key Vault Secret client library for Python I got the secret for the certificate which has an extracted private key. -----BEGIN PRIVATE KEY {private_key_value} -----END PRIVATE KEY----- -----BEGIN…
gundarsv
  • 11
  • 1
0
votes
1 answer

Flask + gRPC trouble

I've got a flask API application running on Win by apache + mod_wsgi plugin. I made a grpc service by official tutorials, created grpc server and running it as a win service (by some win service manager, can't find it anymore). As grpc client i used…
Sas Matras
  • 31
  • 1
  • 3
0
votes
1 answer

Python RPC Time module function not found

I am trying to get started with Python + gRCP and so I checked out their repository as mentioned in the gRPC guide (https://grpc.io/docs/quickstart/python/). Now I could execute the Hello World-Script (Client + Server), and so I tried to modify it.…
Rüdiger
  • 893
  • 5
  • 27
  • 56
0
votes
1 answer

Are there any examples of multiple grpc services working alongside eachother

Multiple gRPC Services Example Hello, coming from a restful Scala play framework world. I was wondering if anyone knows of any example projects, videos, medium articles related to stringing together multiple services to cal eachother. All the…