-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
Description
grpc-status Header is missing when gRPC status > Status::GrpcStatus::MaximumValid
Example:
grpcMethodA
SetHeader("xyz", "123")
return errorStatus(3), errorMessage("hello, error message")
< HTTP/2 400
< content-type: application/json
< xyz: 123
< x-envoy-upstream-service-time: 1
< grpc-status: 3
< grpc-message: hello, error message
< content-length: 0
< date: Tue, 27 Aug 2019 13:02:42 GMT
< server: istio-envoy
grpcMethodB
SetHeader("xyz", "123")
return errorStatus(1024), errorMessage("hello, error message")
< HTTP/2 503
< content-type: application/json
< xyz: 123
< x-envoy-upstream-service-time: 7
< grpc-message: hello, error message
< content-length: 0
< date: Tue, 27 Aug 2019 13:04:04 GMT
< server: istio-envoy
But when using Trailer, when StatusOK(0), trailer related header is missing, it only shows when error accurred.
Reactions are currently unavailable