Questions tagged [grpc]

A general RPC (Remote Procedure Call) framework over HTTP/2, initially developed at Google. gRPC is a language neutral and platform neutral framework that allows users to write applications where independent services can work with each other as if they were native. It uses Protocol Buffers as the interface description language.

0
votes
1answer
13 views

rspec `described_class` is `nil`

Rails 6.0.0.beta3 rspec 3.8.0 I've just installed rspec-rails on my Rails app. I ran rails g rspec:install and it generated spec/spec_helper.rb, spec/rails_helper.rb and .rspec The only thing I ...
0
votes
1answer
13 views

How to assign a random port number to a gRPC server instance (in Node)?

When starting an http server in Node.js, developers can listen on a randomly available port by passing 0 like so: const http = require('http') const service = require('../my/service); const server = ...
0
votes
0answers
7 views

Why do my additional_bindings not work for transcoding gRPC with ESP?

I'm using Google's Extensible Service Proxy to transcode between gRPC and REST for my API. I have an RPC that looks like this: // Get a portfolio by ID. rpc GetPortfolio(PortfolioId) returns (...
0
votes
1answer
28 views

gRPC Client->Server connection failed - The server returned an invalid or unrecognized response

I have build the gRPC pair (client+Greeter Service) as MS described here and tried to run. I have received the Server log: dbug: Grpc.AspNetCore.Server.Internal.GrpcServiceBinder[1] Added gRPC ...
0
votes
0answers
36 views

How to call BigQuery from server side Swift?

I have iOS App written in Swift. Would like to implement a web service in server side Swift to be called from the iOS App. Would use Kitura installed as Docker App on Google Cloud Run. The web ...
0
votes
0answers
13 views

Network traffic forwarding over grpc port

I have a requirement where I need to forward all the request from different sources to another network by grpc. Request Server<-> Grpc Client <-> Internet <-> Grpc Server <-> Resource ...
1
vote
0answers
24 views

gRPC deadline set and call timeout difference lower than deadline time

I am making gRPC calls from a java service, and using withDeadlineAfter(1000, TimeUnit.MILLISECONDS).callApi() This call times out in most cases (DEADLINE_EXCEEDED). When I checked the logs, it looks ...
0
votes
0answers
17 views

How do RPC services in servers are called from gRPC core?

Recently, I read the demo of routeguide from gRPC to find out how the server receives the requests, services the requests and finally sends the reply to the client in detail. The outline of what ...
0
votes
1answer
31 views

How to make call to gRPC server over HTTP/1.1 from cURL command or in internet browser

I have added below new code in protobuf file and compiled to get the generated grpc_pb files. service EchoService { rpc Echo(EchoMessage) returns (EchoMessage) { #-----New code start----- ...
0
votes
0answers
14 views

What determines the number of CQs in RPC server?

I read the code of function ServerBuilder::BuildAndStart() in src/cpp/server/server_builder.cc, which includes the following code: // cqs_ contains the completion queue added by calling the ...
0
votes
0answers
14 views

cert-manager : GRPC/HTTP2 with TLS issue - call from client with roots.pem not working

The certificate is generated thanks to letsencrypt in kubernetes with cert-manager. It is in the form of a k8s secret and contains: Type: kubernetes.io/tls Data ==== tls.crt: 1005 bytes tls.key: ...
1
vote
0answers
36 views

Use main thread for grpc-rs server

I am using grpc-rs for gRPC in my Rust project. In all the examples I have seen so far I can see that a server can be started with: let mut server = ServerBuilder::new(env) .register_service(...
0
votes
1answer
31 views

nodejs : how to compile grpc with newer openssl?

I would like to compile grpc with newer openssl( >= 1.1.0 ) in nodejs project, but I have no idea how to get along with it. Here is the package.json in the whole project. { "name": "fabcar", ...
0
votes
0answers
23 views

How to handle disconnect in grpc bidirect stream?

I have bidirect async stream using gprc and unable to find how to subscribe to disconnect event(both cases : closed by server or network problem). In grpc documentation https://grpc.github.io/grpc/...
0
votes
0answers
14 views

How do I import protobuf in chrome extension?

In my background.js file, I tried import {Request} from './proto/test_pb.js' it throws error: does not provide an export named 'default' How do I generate pb.js file that can be imported? This is ...
0
votes
0answers
18 views

How to install gRPC extension in windows based server and php 7.1?

Trying to setting up firestore database on one of my web based application. I am trying to use google firestore in my web application which is working fine on local server where i installed php 7.2, ...
0
votes
0answers
20 views

unknown directive “grpc_pass” error when reloading nginx

I am trying to use grpc_pass in order to connect my grpc client to my server. The documentation says that first I need to install http2 and then use grpc_pass. I have tried installing nginx from its ...
0
votes
0answers
111 views

Delphi's TNetHTTPClient descendant supporting http2

I am trying to communicate with Google Cloud Speech via gRPC from a Delphi 10.3.1 Windows client application. For this, the communication needs to be using http2 as protocol, and data needs to be ...
0
votes
0answers
22 views

Prevent deletion of generated Protobuf/gRPC files on dotnet clean

We have a .NET Core .csproj where we use the NuGet gRPC package to generate C# source. The problem is that a dotnet clean will delete the generated files - but then, for some reason, the subsequent ...
1
vote
1answer
51 views

Configuring Proton for SSL / TLS throwing openssl wrong version number and gRPC client error

I'm kinda at a loss here. Trying to set up proton with SSL / TLS access, but after creating the certificates with the (modified) shell scripts supplied by the AppDev-Pack and linking the keyring and ...
0
votes
0answers
15 views

gRPC support for Xamarin.Mac

I'm currently trying to add grpc to my Xamarin.Mac app. I'm able to add the nuget packages but while compiling i'm getting the following errors Undefined symbols for architecture x86_64: "...
0
votes
1answer
26 views

GRPC: when get a new client?

I am using grpc in my project, if i have a grpc service call helloService, should i use GetNewHelloServiceClient to get a new client in every function? Or just get once in start program? // for ...
0
votes
1answer
39 views

Is it possible to check enum value in proto file?

I would like to validate enum values in generated Java code. I have following proto file: syntax = "proto3"; import "google/protobuf/empty.proto"; option java_multiple_files = true; option ...
2
votes
0answers
46 views

Bigtable Client initialization stuck in Kubernetes container

We are trying to run a Golang app on Kubernetes which talks to Bigtable. The application seems to be stuck at creating the client: bigtableClient := bigtable.NewClient() upon setting the log level ...
0
votes
0answers
15 views

How to set ktor char encoding to UTF-8

I develop a ktor server, when I send JSON in HTTP POST with a REST API, I got the original UTF-8 post body wiht encoding ISO_8859_1. I can convert it back to UTF-8 at all my request, at all code ...
0
votes
1answer
52 views

Where is the code of gRPC that handles deadline in the client stub?

I'm searching for when deadline starts to count down and how deadline is handled in detail in the client stub in gRPC. I think that src/cpp/client/generic_stub.cc may tell some details. In the ...
3
votes
2answers
78 views

How to Handle and get response from goroutines in golang

I have go routines called in getPosition, getStatus and rerouting for my drone currently I am invoking go GetStatus in my main function which this function has go func() which handles the event for ...
1
vote
1answer
42 views

GRPC Load Balancing with Envoy

Might be a dumb question (apologies).... I currently have a microservice application written in GO and using GRPC for all service to service communication. I am currently using client side load ...
0
votes
2answers
22 views

gRPC Node: How to set a field that is of another Message type (with multiple types itself)

What I want to achieve is that I have a .proto file: message Request { Error error = 1; bool success = 2; } message Error { int32 status = 1; string message = 2; } I compile it so I ...
0
votes
0answers
21 views

Adding protobuf support to go program built using gogradle

I want to integrate protobuf support into my go code, but cannot figure out how to integrate it using gogradle I want to integrate protobuf support into my go code, and am using gogradle as a build ...
1
vote
1answer
23 views

How does one generate client and server code manually for Java in gRPC?

The official documentation states the following with respect to generating client and server code. Next we need to generate the gRPC client and server interfaces from our .proto service ...
0
votes
2answers
33 views

Protobuf and Python: How to add messages to “repeatable Any” field?

I have a proto message: syntax = "proto3"; import "google/protobuf/any.proto"; message Task { repeated google.protobuf.Any targets = 1; // ... } message Target { string name = 1; //...
1
vote
0answers
29 views

Url rewrites for outbound requests made by 3rd party dependency

I have a spring boot webapp that makes use of a third party dependency that is doing some grpc requests on my behalf. As some of the urls used by that library are invalid in my environment, is it ...
0
votes
0answers
13 views

How to fill in the webhook URL via gRPC?

You can set the webhook URL for an agent via the Dialogflow console - but is it also possible to set it via gRPC?
1
vote
1answer
27 views

Accessing GRPC context of request in scala

I can't find any example in scala/java where the server side is accessing the context of a grpc request (with scalapb / grpc.io). I can find many examples in golang. I found some of with akka grpc but ...
0
votes
1answer
13 views

How do you send GRPC metadata through HTTP REST when transcoding is used?

I have a gRPC API running in Google Cloud. I'm using Google's Extensible Service Proxy to connect it to a Google Endpoints Service. Then I enabled transcoding in the ESP so that a REST API is offered ...
0
votes
0answers
6 views

Add grpc with existing http framework

I have c++ api, based on boost beast http async server . With that, I can do http request with curl. My api is reachable by browser too. I need to call remote function from c++ app. I could use ...
0
votes
0answers
14 views

proto implementation with dependencies in client side js

Is it possible to generate js-friendly protobuf libs without the unnecessary dependencies? I'm trying to implement a grpc connection between a (modern) browser and a mocking nodejs server. the ...
0
votes
1answer
24 views

grpc and protobuf with variable keys

I have a hash of key values pairs. I do not have the keys, nor the values. I can assume most will be there, but sometimes keys are removed and others are added. Is there any way for me to have a ...
0
votes
1answer
62 views

What is the proper way to set MDC for logging in grpc-java with ServerInterceptor?

I want to use ThreadContext from log4j2 for setting MDC context keys like request-id, user-id to trace request information in logs for debugging. I have written an MdcInterceptor which does the ...
0
votes
1answer
28 views

Not able to load php_grpc.dll for php 5.6 in xampp for windows

I am trying to use google cloud php sdk to fetch from google bigtable and found that it requires grpc to be enabled. So i tried installing grpc on my xampp by downloading dll file from https://pecl....
1
vote
0answers
17 views

What is the reason to close connection right after request and open new one for new request?

I do not understand why I must close a gRPC channel for each request? Can some one explain it? I get used to have pool off connections for HTTP1.1 Why not to create a channel and use it for each ...
0
votes
0answers
22 views

pdfium crashes with strange call stack within grpc server through p/invoke

I'm building a .Net Pdf parser with help of pdfium native binary, through p/invoke. Because Pdfium isn't thread-safe, I'm wrapping it within a gRPC server (net45) to enable parallel processing ...
0
votes
0answers
14 views

How to query for the local port used by a grpc channel using the grpc api

I'm writing a grpc client with the grpc C++ client library. I'd like to query for the local peer port used by the client library while the grpc channel is active. I need this information for some ...
1
vote
0answers
39 views

Sending email from a kubernetes pod

I’ve built a service that lives in a Docker container. As part of it’s required behavior, when receiving a gRPC request, it needs to send an email as a side effect. So imagine something like service ...
0
votes
1answer
26 views

Accessing protobuf from different project .Net

I am trying to build out a large system using gRPC. I have a project where I define a .proto file. I create a second project that takes a reference to the first project. I want to be able to use a ...
-1
votes
0answers
17 views

Error while sending request from grpc client in python

I have created a grpc client and server using proto in python .I am getting below error.anyone have idea why do we get this error ? how do we handle stream data in grpc clien and server? status = ...
0
votes
0answers
14 views

gRPC crashes with “Error starting a batch of operations: 8”

My app uses the Objective-C gRPC framework. Every so often, it crashes in the gRPC code with the error Error starting a batch of operations: 8 What causes this and how do I fix it?
1
vote
0answers
15 views

.net Google.Cloud.Firestore name resolution error in grpc

My backend fails on trying to access cloud firestore collection. I use the nuget package Google.Cloud.Firestore (currently 1.0.0-beta20). The error says Grpc.Core.RpcException: Status(StatusCode=...
0
votes
0answers
20 views

“grpc_message”:“Received RST_STREAM with error code 8”,“grpc_status”:1

I'm receiving an error from a GRPCProtoCall when trying to upload a larger photo. I was originally using the editor that came from UIImagePickerController that would crop photos to a smaller square. ...