You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to return a Status with details from an unary RPC call looking like this
Err(Status::with_details(
Code::ResourceExhausted,
"Too many requests",
Bytes::from_static(b"hello"),
))
It panicked with an error:
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Status { code: Internal, message: "Couldn\'t serialize non-text grpc status header" }', /Users/<usr>/.cargo/registry/src/github.com-1ecc6299db9ec823/tonic-0.2.0/src/server/grpc.rs:225:9
Bug Report
Version
0.2.0
Platform
Mac OS Catalina
Description
I was trying to return a Status with details from an unary RPC call looking like this
It panicked with an error:
Upon discussing with @LucioFranco in Discord:
*-bin
header, they should probably be base64-serialized according to spec.The text was updated successfully, but these errors were encountered: