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 java does LongArrayList resize when deserializing?

I'm using grpc 1.37.0 and Java. As far as I can see from the generated code, when doing deserialization on an int64 list as below, the code essentially creates an empty LongArrayList and adds to it. My question is, does that have the resizing…
OrlandoL
  • 898
  • 2
  • 12
  • 32
2
votes
1 answer

Envoy proxy: 503 Service Unavailable

State of Servies: Client (nuxt) is up on http://localhost:3000 and the client sends requests to http://localhost:8080. Server (django) is running on 0.0.0.0:50051. Also docker is up 78496fef541f 5f9773709483 "/docker-entrypoint.…" 29…
Saeed
  • 3,294
  • 5
  • 35
  • 52
2
votes
1 answer

Golang Protoc Compiler Command relative_path problem

I try to learn gprc in golang. I write a .proto calling service.proto and try to compile it with this command: protoc --go_out=. --go_opt=paths=source_relative \ --go-grpc_out=. --go-grpc_opt=paths=source_relative\ proto/service.proto But I am not…
oakkose
  • 353
  • 3
  • 13
2
votes
0 answers

Cmake : FetchContent_Declare protobuf + grpc error "cannot create target libprotobuf-lite"

I'm trying to get protobuf(actually, I need protoc) and grpc during cmake configuration time. I tried to download sources from github via FetchContent_Declare() macro. My simple cmake project : CMakeLists.txt : cmake_minimum_required(VERSION…
drus
  • 495
  • 2
  • 6
  • 13
2
votes
0 answers

Ways to generate gRPC API documentation (specifically for Java, Spring Boot)

I would like to document the gRPC API in my Spring Boot application. The sources on the web that I have looked through suggest something like mapping endpoints to REST and then generating documentation (e. g. Swagger). I would like to find out if…
2
votes
0 answers

Grpc server doesn't work after removing the Grpc.Sevrer and started to use services.AddGrpc

I'm trying to remove GRPC.Core library before it's deprecated . I used Grpc.Server with custom port but now after using service.AddGrpc(), I can't set the port. My app uses both iis and grpc with net core 3.1. this is from my…
2
votes
2 answers

How to use (pack) Google.Protobuf.WellknownTypes.Any in protobuf-net code first gRPC

I am creating an gRPC service and we decided to choose the code first approach with protobuf-net. Now I am running into a scenario where we have a couple of classes that need to be wrapped. We do not want to define KnownTypes in the MyMessage class…
monty
  • 7,888
  • 16
  • 63
  • 100
2
votes
1 answer

How to implement a code first gRPC server stream without loop and call delay in .Net5

In the gRPC for WCF developers repo there is a great example how to implement a gRPC server stream using the contract first approach. The great thing on in is that it does not need a loop ar a queue and triggers the gRPC call without delay once the…
monty
  • 7,888
  • 16
  • 63
  • 100
2
votes
1 answer

_InactiveRpcError while querying Vertex AI Matching Engine Index

I am following the example notebook as per GCP docs to test Vertex Matching Engine. I have deployed an index but while trying to query the index I am getting _InactiveRpcError. The VPC network is in us-west2 with private service access enabled and…
2
votes
0 answers

gRPC client having lots of issues and not working

I started using gRPC with Visual Studio 2022 and never saw so many issues as now. When I wanted to create an additional Proto file I got the error saying that I need to specify the language. That's weird, because I selected the proper option which…
2
votes
1 answer

How to add token in bloomrpc

I am using bloomrpc for testing grpc requests and responses. I don't know how to add token to my request. How can I add token to my grpc request in bloomrpc?
Khamidjon Khamidov
  • 6,783
  • 6
  • 31
  • 62
2
votes
0 answers

How to configure line endings (LF/CRLF) when generate code from Protobuf files in Visual Studio

I'm using Visual Studio 2022 on a project that using gRPC that contains .proto file. When I open or build the project, the line ending mode of proto-generated classes are set to LF. Currently, these files are tracked in code base with CRLF mode. How…
Le Vu
  • 407
  • 3
  • 12
2
votes
1 answer

object is not a member of package

Im trying to implement the simple server-client application using scalaPB's official example. The scala code is found on their gitHub However, when I try to run it, I keep getting the error object helloworld is not a member of package…
Bassusour
  • 175
  • 6
  • 14
2
votes
1 answer

How to make each client get their state if there is class instance in grpc-python server side?

I want to use grpc-python in the following scenario, but I don' t know how to realize it. The scenario is that, in the python server, it uses class to calculate and update the instance' s state, then sends such state to corresponding client; in the…
2
votes
0 answers

Installing google's cloud text to speech python module on a raspberry pi

Reproduce on a raspberry pi (I have a v4 B) running Raspbian GNU/Linux 10 (buster) in a terminal window by running: pip3.x install google-cloud-texttospeech python3.x from google.cloud import texttospeech I'm getting this error message regarding an…
GPSmaster
  • 844
  • 3
  • 15
  • 31