439 questions
2
votes
2
answers
117
views
Unable to generate code for proto files that use import
I have been using .proto files without any issue with C# and Java. I have more than hundred proto files spread across a folder hierarchy. I can compile in Visual Studio and in JetBrains IntelliJ Idea. ...
0
votes
0
answers
94
views
How to proxy gRPC traffic using NGINX stream module with TLS termination?
I'm trying to configure NGINX as a reverse proxy for a backend gRPC service, with TLS termination handled by NGINX. My goal is to use the stream module and proxy_pass instead of the http module and ...
0
votes
0
answers
31
views
Error while setting a value using Actuator on kuksa
I am using https://github.com/eclipse-kuksa/kuksa-mock-provider in my local to try. My kuksa broker is up and running fine.
When do GET for a actuator path 'Vehicle.Body.Windshield.Front.Wiping.System....
0
votes
0
answers
152
views
How to avoid "TypeError: Couldn't build proto file into descriptor pool: duplicate symbol 'core.grpc_interface.Explosion'"
Language / runtime: Python 3.12.3
Operating system: Linux (Ubuntu 24.04)
Protoc / protobuf versions:
protoc (libprotoc) 31.0
protobuf 6.30.1
grpcio-tools 1.73.1
Description:
My ...
0
votes
1
answer
261
views
Deploying Langgraph nodes in separate containers
I’m using LangGraph (LangChain + graph orchestration) and want to run each node (agent) in a separate container.
Goals:
Allow a node to serve multiple graphs (not tied to a single graph).
Make nodes ...
0
votes
1
answer
208
views
gRPC connection was aborted by the software in your host machine on I
Problem statement
Environment: Windows, Python gRPC >= 1.68.0
In my setup, from Python client app I'm making a connection without any additional options to the Python server. I'm calling 2 unary ...
2
votes
0
answers
59
views
Can I use asyncio.Event.wait() instead of gRPC await server.wait_for_termination()
The typical approach for gRPC AsyncIO is
await server.start()
try:
await server.wait_for_termination()
except:
...
But I was wondering rather than dealing with it via a hard stop because ...
1
vote
0
answers
55
views
Locust do not log success in case of GRPC endpoint returning a stream
Locust does not log success in case of GRPC endpoint returning a stream
Below is my setup:
locust==2.33
python
grpcio==1.70.0
grpcio-tools==1.62.1
protobuf==4.25.3
I am unable to see success on ...
2
votes
1
answer
229
views
bazel build and run grpc server with python
I am trying to setup a larger bazel infrastructure to
Create .py files from a .proto file for gRPC using rules_proto_grpc_python
Run the server code that implements the interfaces defined in 1 via a ...
0
votes
0
answers
58
views
gRPC - How to add custom encryption in Python?
Promblem Formulation
Hello there, I am new to gRPC.
Recently I am trying to write a python client, which emulates gRPC connection with a remote server which has custom encryption and compression on it'...
0
votes
1
answer
100
views
gRPC error "sendmsg: Result too large (34)"
I am in corporate environment. I use gRPC as RPC means to implement a workflow automation. Some of the messages do implement one-directional streaming, typically for uploading/downloading files. I am ...
0
votes
1
answer
274
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
153
views
How can I implement dynamic connections with gRPC in Python?
I'm working on a project using Docker in which I need to dynamically compile a gRPC protofile and then create the connection and make a request to the server using the method defined in said protofile....
0
votes
0
answers
299
views
How to use gRPC client event listener as a source for Apache Flink
I am trying to implement a gRPC client as a source for my Apache Flink application. The goal is to read streaming data from a gRPC event listener (the gRPC client is salesforce PubSub Api for Change ...
0
votes
0
answers
79
views
Getting Error Exception calling application: [Errno 5] Input/output error sometimes
my sample.proto file
syntax = "proto3";
package protofile;
import "google/protobuf/timestamp.proto";
import "google/protobuf/struct.proto";
option go_package = "./...
1
vote
1
answer
718
views
Is there any specification on gRPC support guarantees as there is with protobuf?
For protobuf there are these 2 documents detailing for how long a version is supported (maintained) and what it the compatibility between code generated with some version when used with a runtime with ...
1
vote
0
answers
117
views
Python gRPC client not reusing HTTP2 connection
I have a Python gRPC server inside a Kubernetes cluster. The gRPC server implements a Ping method.
The server is load-balanced through Ingress Nginx, using the proper configuration (based on the ...
0
votes
1
answer
150
views
Converting django serializer data to google.protobuf.struct_pb2.Struct gives error: TypeError: bad argument type for built-in operation
I want to create a response message in grpc with the following format:
message Match {
int32 index = 1;
google.protobuf.Struct match = 2;
google.protobuf.Struct status = 3;
}
I have a ...
0
votes
1
answer
333
views
Can the Python `protoc` compiler module from `grpc_tools` automatically include proto files from site-packages?
In Python, the gRPC project proto files are shipped in smaller packages. For example, I want to use status.proto, which is the grpc-status package.
The protoc compiler is provided as a Python module ...
0
votes
1
answer
107
views
django grpc framework server interceptor does not seem to run properly
I am using djangogrpcframework 0.2.1 and I am trying to write a interceptor to see if a key is present in the request metadata. I also log somethings to see the progress of the interceptor.
from grpc ...
0
votes
0
answers
463
views
GRPC requests getting cancelled by client, despite infinite timeouts everywhere
I'm doing some tests with a grpc client/server. The code is based on the official python examples
https://github.com/grpc/grpc/blob/master/examples/python/helloworld/async_greeter_server.py
https://...
2
votes
1
answer
674
views
python gRPC error: "Exception calling application: 'module' object is not callable"
I am trying to create a simple gRPC service with python, using this code:
import grpc
import classification_pb2
import classification_pb2_grpc
from io import BytesIO
class ClassificationClient:
...
0
votes
0
answers
212
views
grpc Greeter Service sample fails randomly
I came across a problem with grpc sample code while I was testing waters with it. I noticed that client succeeds, let's say 75% of time but fails at a rate of 25% with following error:
grpc._channel....
1
vote
1
answer
985
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/...
1
vote
0
answers
180
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 ...
0
votes
1
answer
607
views
Python 3.8 compatibility problem with Protos 5.27.0
I'm running a Python 3.8 app that is using some proto generated from a private repo. This integration was working until the generated code used the 5.27.0 version.
The error I'm getting is something ...
1
vote
0
answers
146
views
Is there a way to create the Python equivalent of the Java gRPC StreamObserver behavior?
I have a use case where the gRPC client (in Java) needs to communicate with a gRPC server (in Python). The communication must be async full duplex. For example, the server must be able to initiate ...
0
votes
1
answer
226
views
Passing standard input to grpc_tools.protoc and --decode Option Usage
The usage summary for the --decode option when --help is called with grpc_tools.protoc mentions that the option reads some binary from the standard input and writes it as text to the standard output. ...
0
votes
1
answer
322
views
How to implement grpc api calls with python
I have the below grpc request which is working fine with Postman:-
URL :- 10.91.151.107:30105
Payload :- {
"headend": { "v4": 173768306 },
"tailend": { "v4&...
0
votes
2
answers
1k
views
grpcio-tools/grpc_tools.protoc How do i use the custom package path
Hi i have a question on how to use the custom package path when calling grpc_tools.protoc
My project structure is the following
C:\temp\test
caller.py
--proto
--foo.proto
--bar....
0
votes
1
answer
358
views
Google pubsub SubscriberClient AttributeError: 'generator' object has no attribute 'add_done_callback'
I'm working on a project and must consume some messages from my GCP Pubsub subscription. Locally I can consume messages normally.
But when I release the changes to a container in the cloud (something ...
0
votes
1
answer
101
views
Templating the request message in Airflow GrpcOperator
Airflow's GrpcOperator supports passing template variables in the data field. However, the protobuf-generated message object that needs to go into the data field is evaluated at parse time, which ...
0
votes
1
answer
610
views
gRPC client request streaming: - "The client reset the request stream."
I am trying to implement request streaming from my python client to my C# server using gRPC.
This is my protofile:
syntax = "proto3";
service PerceiveAPIDataService {
...
0
votes
0
answers
1k
views
Is there any way to disable SSL-verification when sending a gRPC request from Python client? [duplicate]
I am testing a gRPC API, written in the GO language. My tests are written in Python (using grpcio lib).
I need to send gRPC requests over HTTPS (using secure_channel(), as far as I understand), but ...
0
votes
1
answer
355
views
CERTIFICATE_VERIFY_FAILED when require_client_auth=True is set in python grpc server
When setting up an grpc server with mTLS it's not possible for me to authenticate the client certificate.
My setup consists of a selfsigned root CA which signed the server certificate and a ...
0
votes
1
answer
334
views
Logging interceptor using grpc.aio python
I can't find an example implementation of a logging interceptor for python that measures the time it takes to process a request.
I want to measure how long it takes to process a request on the server ...
1
vote
0
answers
528
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
848
views
gRPC API versioning
There is a situation where I need to implement 2 versions of the grpc API on my server. How can I do this?
syntax = "proto3";
package greet.v1;
will help me to add versioning to my pb2 ...
1
vote
0
answers
647
views
gRPC assertion failed after gRPC finished executing
I am using grpcio version 1.48.2
My application is essentially a collection of gRPC servers on different docker containers, with 10 max workers in the thread-pool.
Recently I started experiencing an ...
0
votes
1
answer
794
views
Parsing datetime to protobuf Timestamp
I'm attempting to parse a datetime element into a protobuf Timestamp in Python since Google Cloud Optimization V1 mandates this format for all datetime fields. However, I've encountered difficulties ...
0
votes
1
answer
1k
views
Where does python's grpc store/read trust certificates?
Where on a Windows machine would gRPC be looking for additional certificate files for root trust?
I have databricks-connect package using gRPC. I am trying to reach a server, but there is a MitM ...
-1
votes
1
answer
392
views
Why client can't acquire messages from server streaming?
I have Python server and client in gRPC. After adding ClientInterceptor I can't receive messages from unary_stream method from the server on client side. On the server side I can see that stream is ...
0
votes
2
answers
703
views
how to fix "TypeError: requires_system_checks must be a list or tuple." caused by "py manage.py grpcrunserver" command? [duplicate]
it's my first time aksing a question here so please take easy on me if I do it bad (or whatever) and help! Thanks.
I have a project in which I need to use django_grpc_framework, and I've implemented ...
1
vote
0
answers
773
views
Error with Linux for google API Gemini AI
My application was working a few weeks ago on Ubuntu Linux. It since has stopped working.
I am now just trying to get anything to work from google, which works on my development windows PC.
The ...
0
votes
1
answer
69
views
PyMilvus Error while making ChatGPT-VoiceAssistant
Error :-
\[WARNING\] PyMilvus:
\[has_collection\] retry:4, cost: 0.27s, reason: \<\_MultiThreadedRendezvous: StatusCode.UNAVAILABLE, failed to connect to all addresses; last error: UNAVAILABLE: ...
0
votes
1
answer
468
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
0
answers
446
views
Integrating gRPC with Keycloak for Flutter App - Feasibility and Implementation
I am exploring the possibility of integrating gRPC with Keycloak for a Flutter application and have several questions regarding this integration. Firstly, is it feasible to use gRPC with Keycloak? ...
0
votes
1
answer
638
views
GRPC Retry Policy and Timeout together
We want to use GRPC config with both timeout and retryPolicy.
Config looks like
{
"methodConfig": [
{
"name": [
{
"...
1
vote
0
answers
390
views
Avoid gRPC message exceeds maximum size
I'm using gRPC to send messages from Java to a Python service. Recently I started getting larger messages that sometimes exceed the maximum message size for gRPC. Increasing that size is not possible ...
-2
votes
1
answer
570
views
running gRPC server and client on different machine
Currently I am using below code to start a grpc server, I want to start graph server and client in such a way so that I would be able to run both on different machines and then connecting them.
server ...