expected tonic::status::Status
, found Status
#56
Answered
by
devashishdxt
NeoPrimate
asked this question in
Q&A
-
I am encountering an error emanating from this code: let base_url = "http://localhost:5051".to_string();
let client = tonic_web_wasm_client::Client::new(base_url);
let message = MessageServiceClient::new(client);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The error: the trait bound `tonic_web_wasm_client::Client: tonic::codegen::Service<http::request::Request<http_body::combinators::box_body::UnsyncBoxBody<tonic::codegen::Bytes, Status>>>` is not satisfied
the trait `tonic::codegen::Service<http::request::Request<http_body::combinators::box_body::UnsyncBoxBody<tonic::codegen::Bytes, tonic::status::Status>>>` is implemented for `tonic_web_wasm_client::Client`
for that trait implementation, expected `tonic::status::Status`, found `Status`
required for `tonic_web_wasm_client::Client` to implement `GrpcService<http_body::combinators::box_body::UnsyncBoxBody<tonic::codegen::Bytes, Status>>` |
Beta Was this translation helpful? Give feedback.
Answered by
devashishdxt
Feb 11, 2024
Replies: 1 comment 1 reply
-
Hi. Make sure you're using the latest version of |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
NeoPrimate
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. Make sure you're using the latest version of
tonic
(which is0.11.0
).