Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

greeter example gives unhelpful error message #182

Open
hxw opened this issue May 6, 2020 · 4 comments
Open

greeter example gives unhelpful error message #182

hxw opened this issue May 6, 2020 · 4 comments

Comments

@hxw
Copy link

hxw commented May 6, 2020

It terminates with Err(Http(ClientDied(None))). though after some debugging (see: stepancheg/rust-http2#40 ) it turns out to be simple an expire cert.

% cargo run --bin greeter_client -- --tls                
warning: field is never read: `conf`                                          
  --> grpc/src/server/mod.rs:81:5
   |
81 |     conf: ServerConf,
   |     ^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: field is never read: `sender`
  --> grpc/src/req.rs:77:5
   |
77 |     sender: Option<mpsc::Sender<T>>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

   Compiling grpc_examples_greeter v0.0.0 (/projects/stepancheg/grpc-rust/grpc-examples/greeter)
    Finished dev [unoptimized + debuginfo] target(s) in 1.74s
     Running `target/debug/greeter_client --tls`
Err(Http(ClientDied(None)))

running grpc-examples/greeter/src/gen-certs.sh then restarting server, will allow the client to work.

@hxw hxw changed the title greeter example gives unhelpful message greeter example gives unhelpful error message May 6, 2020
@agentydragon
Copy link

I'm getting the same error when running a grpc-rust gRPC server as a Google Cloud Run function. I also got the "address resolved to multiple addresses" error, and then a Err(Http(ClientDied(None))). I could also use a better error message and some way to disable whatever check is failing (I have not figured that out yet).

@stepancheg
Copy link
Owner

Good news is that I fixed this issue just yesterday in rust-http2. I'm planning to upgrade grpc-rust to the latest rust-http2 soon.

@stepancheg
Copy link
Owner

@agentydragon
Copy link

Cool. By the way, I came upon grpc-rust via Bazel's Rust rules (https://github.com/bazelbuild/rules_rust). Might be also nice to update the grpc version there when the updates propagate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants