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.

Links

Related Tags

6316 questions
2
votes
0 answers

GRPC over HTTPS proper client initialization in Go

I'm interfacing from my code certain 3rd party software (particularly chirpstack v4) which provides API via GPRC. When deployed locally, it answers via HTTP and I get the response all right. However in cluster we have the same server deployed with…
Rodion Gorkovenko
  • 2,670
  • 3
  • 24
  • 37
2
votes
1 answer

Protoc protoc-gen-go "timestamp" is not defined

I need to use Protocol Buffers to serialize JSON messages received from the Google Drive drives:list method and write them to the BigQuery Storage Write API (GRPC). This is working for all field types except timestamp. I cannot for the life of me…
Michael
  • 1,428
  • 3
  • 15
  • 34
2
votes
1 answer

specified method is not supported error on calling grpc service using protobuf-net library

My team uses Google grpc communication for micro service communication. I came across protobuf-net that is fast, reduces code complexity and no .proto file to be defined. I wanted to give a try using protobuf-net to see if we gain considerable…
Anakar
  • 112
  • 11
2
votes
1 answer

Nestjs GRPC Service method without parameters

I'm learning how to build a micro services architecture by nestjs and gRPC I create an API to get data from another service, and it doesn't need any argument. So I use google.protobuf.Empty and let validate interface function keep empty as code…
Champer Wu
  • 1,101
  • 3
  • 13
  • 32
2
votes
2 answers

How to fix "14 UNAVAILABLE: Name resolution failed for target dns:http://sample-service:40000" GRPC + Docker error

I have a deployed nest.js gRPC server and a client in docker containers with the following docker commands, Client (api-gateway) : docker run -dit -p 3000:3000 --hostname ${{ env.IMAGE_NAME }} --name ${{ env.IMAGE_NAME }} --network web_server ${{…
Sathya Molagoda
  • 531
  • 1
  • 6
  • 17
2
votes
0 answers

gRPC request with IntelliJ http client

I'm trying to make a simple gRPC request in IntelliJ to a service that looks like this import "google/protobuf/wrappers.proto"; service UserContactDetailsService { rpc getContactDetails (google.protobuf.UInt64Value) returns…
strem
  • 400
  • 1
  • 4
  • 15
2
votes
1 answer

Can we have multiple Grpc services in the Grpc server for the same Protobuf file?

I have an ASP.NET Core 6 Web Api application. I have a Grpc Client and a Grpc Server. I have a proto file: service FooService { rpc GetFirstData (FirstRequest) returns (FirstResult); rpc GetAnotherData (AnotherRequest) returns…
MiBuena
  • 451
  • 3
  • 22
2
votes
1 answer

What is the suggested way to add timer and backgroundworker in a c# gRPC service

To make it simple, Let say I have a gRPC service: At Startup.cs, I added the dependencies the services needed. public void ConfigureServices(IServiceCollection services) { services.AddGrpc(); // Add dependencies …
kzfid
  • 688
  • 3
  • 10
  • 17
2
votes
1 answer

Golang how to return list in gRPC

I have two structures. One own, and the other generated through gRPC. The problem is that when you try to return your own through gRPC, an error is generated: "cannot use list (variable of type []db.User) as *pb.UsersList value in return…
TheQQWEETT
  • 43
  • 5
2
votes
1 answer

How do I get the GRPC Metadata sent by a client on the service implementation?

I am able to obtain the Metadata using an interceptor on the channel so I can tell it is being sent. .intercept( new ServerInterceptor() { @Override public ServerCall.Listener interceptCall( ServerCall
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
2
votes
0 answers

Adding gRPC as dependency via CMAKE fails

I building a project that depends on gRPC. In the project I want to use gRPC, I'm using the following lines to find the package and add it as a dependency # gRPC find_package(gRPC CONFIG REQUIRED) message(STATUS "Using gRPC ${gRPC_VERSION}")…
xabush
  • 849
  • 1
  • 13
  • 29
2
votes
1 answer

gRPC Server-side non-streaming request

I have a gRPC service, and I would like to have a message initiated from the server to get order states from the client. I would like this server=>client request to be synchronous, and the client must initiate the service because of firewall…
frank
  • 501
  • 8
  • 21
2
votes
0 answers

fatal error: google/protobuf/port_def.inc: No such file or directory

i am on ubuntu and i am using libprotoc version 3.15.8 when i run cmake command it successfully done but when i run make -j it's throwing error: . . . [ 8%] Building CXX object CMakeFiles/ConfigServiceCore.dir/main.cpp.o In file included from…
Jocefyneroot
  • 137
  • 1
  • 11
2
votes
0 answers

Why ClientCertificates is null when I create a HttpClientHandler?

I would like to use a certificate in my gRPC client. I am trying doing this: public ServiceClientGrpc(string paramDireccion, int paramPuerto, string paramCertificado, string paramKey) { var cert =…
Álvaro García
  • 18,114
  • 30
  • 102
  • 193
2
votes
0 answers

How can I call gRPC endpoint from Next.js Application inside of a functional component?

I have set up default gRPC server via Visual Studio .net 6.0. The proto file is as foolowing: syntax = "proto3"; option csharp_namespace = "GrpcService"; package greet; // The greeting service definition. service Greeter { // Sends a greeting …
Raitis Lebedevs
  • 47
  • 1
  • 13