Bug Report
Version
[dependencies]
prost = "0.6"
tonic = "0.3"
tonic-health = "0.2"
[build-dependencies]
tonic-build = "0.3"
Platform
Darwin MacBook Pro 19.5.0 Darwin Kernel Version 19.5.0
Description
I'm using the tonic_health service and a lightweight gRPC service and the servers are standing up fine and when I make a call to it with grpcurl, the protocol responds back with the appropriate message.
However, when I try to tie the server into an ecosystem that utilizes it and the health service, I keep getting:
* rpc error: code = Unknown desc = OK: HTTP status code 200; transport: missing content-type field
I've tried manually appending the content-type field to the response metadata as both application/grpc and application/grpc+proto as:
let mut res = Response::new(msg);
res.metadata_mut().append(
"content-type",
metadata::MetadataValue::from_str("application/grpc").unwrap(),
);
Ok(res)
but this still doesn't resolve the issue.
Bug Report
Version
Platform
Darwin MacBook Pro 19.5.0 Darwin Kernel Version 19.5.0
Description
I'm using the
tonic_healthservice and a lightweight gRPC service and the servers are standing up fine and when I make a call to it withgrpcurl, the protocol responds back with the appropriate message.However, when I try to tie the server into an ecosystem that utilizes it and the health service, I keep getting:
* rpc error: code = Unknown desc = OK: HTTP status code 200; transport: missing content-type fieldI've tried manually appending the
content-typefield to the response metadata as bothapplication/grpcandapplication/grpc+protoas:but this still doesn't resolve the issue.