mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
* Upgrade grpc-gateway to v2 * Customize error and enable DefaultHTTPErrorHandler 1. Enable `runtime.DefaultHTTPErrorHandler` to convert gRPC status code to HTTP code. 2. Since we use custom error struct, we need to implement `GRPCStatus` to make sure grpc-go can recognize the error code in our struct, Otherwise, it will always return codes.Unknown(2), that's the reason we always see code 2 and HTTP 500 in the past.
18 lines
475 B
AMPL
18 lines
475 B
AMPL
module github.com/ray-project/kuberay/proto
|
|
|
|
go 1.17
|
|
|
|
require (
|
|
github.com/grpc-ecosystem/grpc-gateway/v2 v2.6.0
|
|
google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af
|
|
google.golang.org/grpc v1.40.0
|
|
google.golang.org/protobuf v1.27.1
|
|
)
|
|
|
|
require (
|
|
github.com/golang/protobuf v1.5.2 // indirect
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
|
|
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect
|
|
golang.org/x/text v0.3.5 // indirect
|
|
)
|