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
When I start server and run client, the client report an error:
cargo run --bin hello-server
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Running `target/debug/hello-server`
GreeterServer listening on 127.0.0.1:5000
cargo run --bin hello-client
Compiling hello-tonic v0.1.0 (/home/david/rust/hello-tonic)
Finished dev [unoptimized + debuginfo] target(s) in 2.02s
Running `target/debug/hello-client`
Error: Status { code: Unimplemented, metadata: MetadataMap { headers: {"date": "Thu, 15 Jul 2021 02:51:19 GMT", "content-type": "application/grpc"} }, source: None }
The text was updated successfully, but these errors were encountered:
I disabled tonic-build's default feature transport, and implemented NamedService for GreeterServer by myself. Because I didn't understand what NamedService was doing, I gave a wrong Name.
To fix this problem, change the Name to "hello.Greeter", or just enable default feature of tonic-build.
Bug Report
Version
cargo tree | grep tonic hello-tonic v0.1.0 (/home/david/rust/hello-tonic) └── tonic v0.5.0 └── tonic-build v0.5.1
Platform
Linux david-VirtualBox 5.8.0-59-generic #66~20.04.1-Ubuntu SMP Thu Jun 17 11:14:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Description
I copied
helloworld
example from tonic, the project is here: https://github.com/davidli2010/hello-tonic.When I start server and run client, the client report an error:
The text was updated successfully, but these errors were encountered: