6,798 questions
1
vote
1
answer
34
views
Posting an array of objects to a grpc server using postman
These are my message definitions I am currently stuck on constructing the profile list
message ModelRescheduleQuoteRequest {
string security_token = 1;
optional string attribute_to_solve_for = ...
Best practices
0
votes
1
replies
84
views
is it possible to build a restful service using grpc?
I've a restful service on http protocol, since rest is an architectural style not a protocol is it possible to build a restful service using grpc?
Best practices
0
votes
1
replies
123
views
How to configure per-method timeout from gRPC service config in Grpc.Net.Client (.NET) like in Java / Grpc.Core?
I’m migrating a client from Grpc.Core / Java gRPC to Grpc.Net.Client (.NET).
In the previous implementation we used a gRPC service config to define timeouts for different methods:
{
"...
0
votes
0
answers
168
views
The console application does not terminate despite the main function completing
I have a simple console application. Typically, when the main function completes, we should see the message "Press any key to close this window..." in the console.
However, this doesn't ...
Best practices
0
votes
1
replies
66
views
Large messages in Protobuf
I'm using gRPC/Protobuf, and I need to stream byte objects that may be large, possibly more than one in each message. The default limits are set at 4MB, and I don't want to keep tweaking these. I also ...
2
votes
1
answer
157
views
protoc3 grpc (go) code generation problem
trying to generate protoc 3 code for my go project. The protoc documentation lists that I can just take the latest version like :
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest and
...
0
votes
0
answers
58
views
Blazor Server client side authentication with gRPC
We are building an application where there are several components that must all work together that are not all entirely in my control.
First, a frontend written in Blazor Server that does some ...
0
votes
1
answer
56
views
Cross-platform gRPC python development (tool version clash)
I'm working on a gRPC service that will run on a Raspberry Pi - I did some initial development on the Pi itself and had a basic example building & running.
To save time I then moved to working in ...
Best practices
0
votes
4
replies
85
views
(Ab)using ASP.NET Core for non-http message processing?
For learning purposes, I was wondering how the very beginning of the processing of a http message looks and how to change that.
So, as a scenario, imagine the requirement is not to process http but ...
Tooling
0
votes
1
replies
64
views
Spring gRPC and Spring Boot compatibility
the getting started page notes that
Spring gRPC 1.0.x supports Spring Boot 4.0.x
But, how about backwards compatibility to Spring Boot 3.x ?
Best practices
0
votes
15
replies
153
views
Representing Hexadecimal values in protobuf
What is the best way to represent hexadecimal like 0x5d4e41859170 in protobuf definition files.
0x5d4e41859170 is a memory address.
Should I use bytes, string or fixed64 types, or is there a better ...
1
vote
0
answers
125
views
Unresolved external symbol google::protobuf::internal::fixed_address_empty_string when linking a static libprotobuf.lib from pre‑built binaries
I downloaded the gRPC binaries from thommyho/Cpp‑gRPC‑Windows‑PreBuilts (gRPC pre‑built Windows binaries and libs | x64 and x86 | MSVC143, MSVC142 (legacy 141 and 140) | Debug, Release, RelWithDebInfo,...
0
votes
0
answers
93
views
Envoy data plane container not coming up : startup probe failing, grpc ERROR and xDS connection unsuccessful
I am trying to install the latest version of Envoy (1.6.2) in my Kubernetes cluster.
I have installed control plane as mentioned here and data plane (Gateway resource).
Control plane is working fine, ...
0
votes
1
answer
77
views
Auto-generated GRPC classes aren't accessible as source folders in Eclipse IDE, but exist
I'm building a Java Spring Boot 4 backend platform split into microservices and leverage GRPC as communication protocol for in-between the microservices. My build tool is Gradle and I am facing an ...
0
votes
1
answer
95
views
Is there a way to disable "not_before" check on grpccpp?
I have a use case of a gRPC server hosted on a machine without timekeeping (no rtc), I see that it is doable to use TLS on it (not checking the server certificates validity at all).
I would like to ...
6
votes
0
answers
188
views
JFrog Artifactory is not accessible; RejectedExecutionException
From time to time, our production JFrog Artifactory instance becomes partially unavailable. During these incidents, the login page does not load and all user authentication requests fail, although ...
2
votes
0
answers
133
views
SignalR WebSocket are unstable behind Traefik in Swarm [closed]
I've been looking for different solutions to this problem, but not results. Please help me understand the root cause.
I have Traefik v3.6 installed in Docker Swarm (Swarm consists of 3 nodes - 1 ...
Best practices
0
votes
1
replies
50
views
How to integrate a new authentication microservice (v2) with a legacy monolithic system (v1)?
We currently have a new microservice that handles authentication, authorization (RBAC), and KYC as part of our v2 architecture.
We also have an older legacy system (v1) which is fully monolithic — ...
1
vote
0
answers
143
views
gRPC YouTube disconnecting with EOF after a few seconds
I'm building a desktop application (Go + gRPC) to analyze YouTube Live Chat in real time.
The REST endpoint liveChatMessages.list works, but I want to switch to liveChatMessages.streamList because ...
Advice
0
votes
1
replies
73
views
Flink - Async IO Threads required
we are using Flink's AsyncIO function with Futures to make external gRPC calls. Currently, we have set the async capacity to 1, and we are using a blocking stub to make those calls. For each event, we ...
3
votes
1
answer
222
views
GrpcStreamingCall client buffers packets and flushes only after timeout — not receiving events in real-time
I'm using com.squareup.wire.GrpcStreamingCall along with OkHttp in a Kotlin mobile app to stream gRPC events from a backend service. The issue I'm facing is that the client does not receive the ...
0
votes
1
answer
108
views
Invalid status line exception trying to establish local gRPC connection with Grpc.Net.Client
I am trying to form a plain HTTP connection to a local gRPC server. This worked using the deprecated Grpc.Core package, but with Grpc.Net.Client I receive:
Exception calling "Wait" with &...
0
votes
0
answers
61
views
Grpc bidirectional stream not throwing exception when not implemented
With a new version of grpc a new service was introduced with a new bidirectional stream. The problem is, that when the server runs with an old grpc, the stream does not (reliably) throw an exception ...
0
votes
0
answers
95
views
Use Grpc-web with Cloud Endpoints gRPC for Cloud Run with ESPv2
I am creating a GRPC service that should be accessible from the web but have found no working guides for getting grpc-web to work with cloud-endpoints and ESPv2. I have used this guide to set ...
0
votes
1
answer
136
views
How to have graceful shutdown for gRPC server in Spring Boot
I was looking for a way to have a graceful shutdown period for my Spring Boot application, which acts as a gRPC server. I did everything this
reference document said, but it did not work.
I tested ...
0
votes
2
answers
196
views
If a clear-text HTTP/2 (h2c) server supports the Upgrade: h2c mechanism, does it also have to accept HTTP/2 “prior knowledge” connections? [closed]
I’m experimenting with HTTP/2 (h2c) startup modes when talking to gRPC servers.
According to RFC 7540 §3.2, an HTTP/2 connection over clear-text (h2c) can be established in two ways:
1. Upgrade from ...
3
votes
0
answers
76
views
Optional query parameter in http signature of proto rpc is not mapped as expected
I was under the impression that given an rpc like below
rpc FetchResource(GetResourceRequest) returns (ResourceResponse) {
option (google.api.http) = {get: "/v1/resource/{resource_id}/group&...
0
votes
0
answers
162
views
Grpc.Core.RpcException: Error starting gRPC call in Azure Functions isolated worker after upgrading to Visual Studio 2022 17.14.x
I’m running into an issue when launching an Azure Functions isolated worker (v4.2.2) project in Visual Studio 2022 (tested with 17.14.12 and 17.14.16).
As soon as the function host starts, I get the ...
1
vote
1
answer
145
views
Envoy auth extension not hitting auth service
I'm trying to put an Envoy proxy in front of my ConnectRPC microservices. I've got the following setup:
static_resources:
listeners:
# Main listener
- name: main
address:
...
-1
votes
2
answers
129
views
SendError with tokioi::mpsc::Sender
I try to send a message into a tonic stream, but I get SendError { .. }
I do
pub struct EventRoute {
tx: mpsc::Sender<Result<Message, Status>>,
}
#[tonic::async_trait]
mpl Event for ...
2
votes
2
answers
174
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. ...
1
vote
1
answer
118
views
Ruby 3.2.4, GRPC 1.74.0 Segmentation fault
Just leaving it here cause I couldn't find a solution on web by myself and had to experiment for a long time to make it work.
What I have:
Ruby 3.2.4, Rails 7 and the GRPC gem of version 1.74.0
...
2
votes
0
answers
88
views
Invalid file descriptor when using protovalidate library
I'm building an API to host on Google API Gateway.
A recent change was to integrate with protovalidate for simple request validation.
Upon doing so, I began getting the following error when pushing my ...
0
votes
0
answers
83
views
How do I propagate data from onMessage() to sendMessage() in my gRPC interceptor?
I have a custom gRPC interceptor to log details of a gRPC request and response. The catch is that I need some fields from the response to be used in the response logging (ie, transaction-id, etc), so ...
0
votes
0
answers
164
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 ...
4
votes
3
answers
592
views
Backward and forward compatibility issues with protobufs in Google Pub/Sub
We use protocol buffers both for gRPC server-to-server communication and for publishing messages to Pub/Sub.
Pub/Sub is fairly sensitive to schema changes, not allowing any schema changes that would ...
1
vote
1
answer
84
views
NestJS with gRPC: "duplicate name" error when loading multiple proto files with shared enums from coming from separate npm packages
Our protobuf definitions are distributed as separate npm packages:
@company/proto-v1 - Contains v1 API definitions + shared models
@company/proto-v2 - Contains v2 API definitions + shared models
...
1
vote
0
answers
325
views
How to use gRPC in C++ without Protobuf, with custom JSON serialization?
I am working on a C++ project where I want to use gRPC, but I want to completely avoid .proto files and Protobuf, just to keep all code in c++, for training purposes.
Instead, I want to use custom ...
2
votes
0
answers
85
views
NestJS gRPC server deployment issue on AWS ECS with NLB
I am trying to deploy and run a gRPC server on AWS ECS. Currently, my Nestjs gRPC server is deployed on AWS ECS. I have created a NLB to route traffic to the service using a target group. But this ...
0
votes
0
answers
59
views
gRPC request works via code but fails with authorization error in JMeter
I'm trying to send a request to a gRPC service. The service requires an authentication token, which looks like this:
{
"environment": "env_id",
"env_id": "token&...
0
votes
0
answers
79
views
What is the relation between values for GRPC_ARG_KEEPALIVE_TIME_MS in a server and client
I am faced with a disconnection on a GRPC Stream, where the PING from the client arrived just a few milliseconds too late to the server.
I have the same values for GRPC_ARG_KEEPALIVE_TIME_MS and ...
1
vote
0
answers
104
views
Limiting the number of requests per minute to grpc API
To interact with grpc API I use java-client generated from proto-files.
The used grpc API has some limit on the number of requests per minute. I would like to proactively wait for the end of the ...
1
vote
1
answer
109
views
How do I set up automatic class generation from a contract using protobuf-net?
I configured the .csproj file as follows:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>...
1
vote
1
answer
227
views
ASP.NET Core 8 grpc Import "annotations.proto" not found
I have an ASP.NET Core 8 project and followed this article:
https://learn.microsoft.com/en-us/aspnet/core/grpc/json-transcoding-binding?view=aspnetcore-8.0
import "google/api/annotations.proto&...
0
votes
0
answers
39
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
40
views
How to send grpc request to the leader controller pod
I have a k8s controller using leader-replica mode, so there're 2 pods, and they are behind a Service which exposes a grpc port.
Now I need to send grpc requests to the leader controller pod from ...
1
vote
1
answer
194
views
When is it safe to drop gRPC stub and channel in C++ (Callback API)?
I'm building a C++ gRPC client using the Callback API. The client sends many asynchronous RPCs, waits for all of them to complete, and then immediately exits.
The problem:
If the application exits ...
0
votes
0
answers
43
views
gRPC: HTTP-level resilience handler (retries)?
Should gRPC clients implement an HTTP-level resilience handler? Or only rely on the gRPC-level RetryPolicy? Why/why not?
For example, if the server responds with a 5xx status code (unexpected but ...
2
votes
0
answers
99
views
How to catch TaskCanceledException from client disconnect in gRPC (.NET 8)?
I'm building a gRPC server using .NET 8, and I’ve registered my gRPC service (MyGrpcService) as a Singleton.
Occasionally, when the client disconnects abruptly, I see this exception in the logs:
Error ...
0
votes
1
answer
134
views
gRPC serialized message size difference between Windows and POSIX
gRPC: 1.59.1; Protocol Buffers: 3.21.12;
I have a .proto file with proto2 syntax. One of the messages looks like this:
message Log
{
repeated Info info = 1; // can be very heavy
...
...