Skip to main content
2 votes
0 answers
50 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&...
dat's user avatar
  • 432
0 votes
0 answers
22 views

How I can get the ctx inside a grpc-gateway marshaller?

I want to use grpc-gateway but I have some custom proto annotation that affect how Json is marshalled/unmarshalled from http payloads. Those annotations are context sensitive (depending on user ...
Boolangery's user avatar
1 vote
0 answers
56 views

GRPC-gateway (golang): how to return nulls in json on some fields

I have enpoint that must return a response like { "reallyOptionalValue": "string" //must be omitted when empty "nullableValue": "string or null" } my ...
Дов Машле's user avatar
1 vote
0 answers
124 views

How to provide custom marshaller to have alternative behavior for tagged fields

Background I have an application that uses gRPC to communicate with other services. Nothing fancy. The data exchange includes fields representing SHA-1, SHA-256 and UUIDs, which are stored as bytes. ...
Marek R's user avatar
  • 40.2k
2 votes
1 answer
378 views

Extend grpc-gateway generated functions with custom decode logic in proto.Message

In the course of work there appeared a necessity to perform strings.TrimSpace on all fields with protobuf type string As a result it was decided to write a plugin that generates the necessary ...
Alexandr Rutkowski's user avatar
2 votes
0 answers
77 views

Go-grpc-gateway: invalid character '<' looking for beginning of value

I'm trying to create an app using go grpc gateway but I faced with the problem. I integrate external service using it's webhooks that use XML format. But as I understand grpc gateway doesn't support ...
Cross's user avatar
  • 845
1 vote
0 answers
314 views

User agent becomes grpc-go/1.64. on server side of grpc gateway

I'm trying to create an app using grpc-gateway and go but faced with the problem. I'm trying to write an interceptor that will authorize users before the requests using cookie and user agent. However ...
Cross's user avatar
  • 845
4 votes
1 answer
238 views

Serialization problem in grpc gateway(go)

I'm trying to create a microservice app using grpc gateway, but faced with a small problem. When I try to send request to api, my fields initialize as zero-value. It's the first time when I'm trying ...
Cross's user avatar
  • 845
1 vote
1 answer
690 views

How to config public route and auth route in gRPC gateway

Is there any way to config public route and auth route in gRPC gateway similar to other http frameworks. For example in echo framework we can config like this func main() { e := echo.New() ...
onemin's user avatar
  • 55
2 votes
0 answers
156 views

Grpc-gateway or maintain simultaneous REST and GRPC servers?

I have mostly used REST or grpc separately in services. When I needed both, used go-kit. But in my new project, OpenAPIv3 is a high want on the REST side and grpc is also needed. I have two options: ...
aloha's user avatar
  • 1,583
2 votes
0 answers
160 views

runtime.WithForwardResponseOption not used when terminating from UnaryServerInterceptor

I've setup a grpc-gateway for a small testbed service and I have a UnaryServerInterceptor setup that checks authorization bearer tokens and validate against an SSO introspection URL. func (im *...
Odinovsky's user avatar
  • 565
0 votes
0 answers
223 views

What happen to Context Object in Go?

first I want to specify our architecture. Client -> Grpc Gateway -> Server In our architecture, we use a gateway to process and authenticate requests and then pass it to the Server application. ...
Amirsadra Abdollahi's user avatar
1 vote
0 answers
407 views

protobuf go gateway protoreflect.ProtoMessage (missing method ProtoReflect)

I'm having problem with this error protoreflect.ProtoMessage value in return statement: *HelloReply does not implement protoreflect.ProtoMessage (missing method ProtoReflect) Indeed there is no ...
Shibbaz's user avatar
  • 11
1 vote
0 answers
110 views

how to dynamically configure custom ingress controller rules for golang grpc gateway service

i am currently discarding traefik ingress controller and writing the golang code. i need help in understanding how to configure the ingress controller rules dynamically from grpc request and then ...
Abhishek D K's user avatar
  • 2,455
3 votes
0 answers
835 views

How to get custom header from metadata of incoming request in grpc-gateway

Here is my CORS policy set to have a custom header return http.ListenAndServe(":"+port, handlers.CORS(handlers.AllowedHeaders([]string{"X-Requested-With", "Content-...
Shehzab Ahammad's user avatar

15 30 50 per page
1
2 3 4 5