440 questions
2
votes
2
answers
109
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
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
1
answer
242
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 ...
2
votes
0
answers
54
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 ...
2
votes
1
answer
223
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
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
264
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 ...
0
votes
0
answers
296
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 ...
1
vote
1
answer
701
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 ...
0
votes
1
answer
149
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
103
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 ...
2
votes
1
answer
673
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:
...
1
vote
1
answer
981
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/...
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 ...
0
votes
1
answer
225
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
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
100
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
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
331
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 ...
0
votes
1
answer
842
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 ...
0
votes
1
answer
793
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 ...
-1
votes
1
answer
388
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 ...
1
vote
0
answers
772
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
467
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 ...
0
votes
1
answer
634
views
GRPC Retry Policy and Timeout together
We want to use GRPC config with both timeout and retryPolicy.
Config looks like
{
"methodConfig": [
{
"name": [
{
"...