grpc

how can I merge grpc client and http request?

how can I merge grpc client and http request? Question: I want to merge http request and grpc client that means: I have a request for create some object. my service is gateway that means it sends data in celery task and grpc client sends a request and receive stream responses. when should i run …

Total answers: 1

Flask web app on Cloud Run – google.auth.exceptions.DefaultCredentialsError:

Flask web app on Cloud Run – google.auth.exceptions.DefaultCredentialsError: Question: I’m hosting a Flask web app on Cloud Run. I’m also using Secret Manager to store Service Account keys. (I previously downloaded a JSON file with the keys) In my code, I’m accessing the payload then using os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = payload to authenticate. When I deploy the …

Total answers: 1

Connect two machines using gRPC

Connect two machines using gRPC Question: 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): File "client.py", line 29, in <module> …

Total answers: 2

share variable that change after import between main process and child processes

share variable that change after import between main process and child processes Question: I’ve a project in gRPC where the main.py spawns grpc servers as subprocesses. Also in the project I’ve settings.py that contains some configurations, like: some_config = {"foo": "bar"} In some files (used by different processes) I have: import settings … the value …

Total answers: 2

Grpc not increasing max size of the message: received message larger than max

Grpc not increasing max size of the message: received message larger than max Question: I am using grpc to send some pretty large messages (the parameters of a machine learning model over the network). The problem is that I am getting the following error when I make a grpc call: grpc: received message larger than …

Total answers: 1

How to write a gRPC client in Python for a gRPC service written in Java

How to write a gRPC client in Python for a gRPC service written in Java Question: I am not able to move forward with this confusion as I don’t know what to do. Most of the tutorials in Python get the main Class name where a method is defined, not sure how to do it …

Total answers: 1

python gRPC client disconnect while server streaming response

python gRPC client disconnect while server streaming response Question: Good day, This is my first time posting so forgive me if I do something wrong with the post. I am trying to get a subscription type service running, which works fine up until the client disconnects. Depending on the timing, this works fine or blocks …

Total answers: 2

How can I use a gRPC "oneof" proto structure in python?

How can I use a gRPC "oneof" proto structure in python? Question: I am building a file storage client/server using python for the client, go for the server, along with gRPC. I have already successfully built the client in go and it works! I am trying to do the same in python now. Today, I …

Total answers: 1

How to generate python class files from protobuf

How to generate python class files from protobuf Question: I am trying to transfer large amounts of structured data from Java to Python. That includes many objects that are related to each other in some form or another. When I receive them in my Python code, it’s quiet ugly to work with the types that …

Total answers: 4