Questions tagged [grpc-gateway]

68 questions
0
votes
1 answer

Returning a json map value with grpc-gateway

I am using grpc-gateway and I would like to expose an api with the following json response: { "id": "123", "name": "MyItem", "properties": { "propA": 1, "propB": "some value", "propC": true, } } The values within "properties"…
Jason
  • 99
  • 6
0
votes
2 answers

Error in generated code with protoc-gen-grpc-gateway

I'm new to Protocol Buffers and gRPC stuff. Now I'm trying to build a client/server architecture with grpc + grpc-gateway in Go. I tried to follow some examples but I always end up with the same problem. After generating the code with protoc i run…
0
votes
1 answer

Generate grpc-gateway, swagger and grpc-go files with bazel

I have a mono repo with some services (service-0 to service-4). There is a proto directory where are the proto files are stored. The proto-files are in the respective subfolders. The directory is structured as followed: . ├── BUILD.bazel ├──…
SamuelTJackson
  • 1,357
  • 3
  • 19
  • 40
0
votes
1 answer

gRPC with HTTP+JSON Gateway

I am trying to build a gRPC service in Java. I also want to serve HTTP+JSON requests. I read about Envoy and grpc-gateway for creating a reverse proxy. But I am not able to do so effectively. I have added google.api.http option in proto file but I…
0
votes
1 answer

Cannot make grpc-gateway .gw.pb and there is no error

I've written this simple go server and client which client sends two numbers, and the server replies with the sum, and it works. Now I'm trying to set up a grpc-gateway using grpc API configuration and change the client's request from GRPC to…
no746
  • 408
  • 6
  • 23
0
votes
1 answer

Why does grpc-gateway is not building new endpoints

When I try to generate a proxy file via go build -o ./out/grpc-proxy, the proxy is generating without the new endpoints added in proto files I use node.js (v10.16.3) and grpc/go after that I build grpc-proxy. Generating code from *.proto into…
0
votes
1 answer

gRPC protobuf bindings: Are changes to fileDescriptor breaking changes?

I am currently developing a gRPC service in Go with gRPC Gateway as an HTTP proxy. I am generating .pb.go bindings from my .proto files, but I noticed that there are subtle changes to my bindings in two separate but related situations when I…
A. Davidson
  • 397
  • 1
  • 4
  • 14
-1
votes
1 answer

.Net core with gRPC - data types support and how to debug the code

I am very new to gRPC and microservice architecture. We have .Net core web APIs written, and they talk to each other via http rest representation. However we are planning to have communication between internal microservice via http2/ gRPC…
Annas
  • 161
  • 1
  • 7
1 2 3 4
5