Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run examples #19

Closed
frostyplanet opened this issue Jul 6, 2021 · 6 comments
Closed

Unable to run examples #19

frostyplanet opened this issue Jul 6, 2021 · 6 comments

Comments

@frostyplanet
Copy link

I have my local etcd container running, but almost all the examples and tests fail:


$ cargo run --example lock
   Compiling etcd-client v0.6.5 (/home/plan/projects/qingcloud/etcd-client)
    Finished dev [unoptimized + debuginfo] target(s) in 5.18s
     Running `target/debug/examples/lock`
try to lock with name 'lock-test'
Error: GRpcStatus(Status { code: Unimplemented, message: "unknown service v3lockpb.Lock", metadata: MetadataMap { headers: {"content-type": "application/grpc"} } })

@davidli2010
Copy link
Contributor

what's the version of your etcd server?

@frostyplanet
Copy link
Author

docker running etcd 3.1.4.
I previously use luncj/etcd-rs and I'd like to try this project out, it seams have more throughout unit test.

@davidli2010
Copy link
Contributor

The proto files are copied from etcd 3.4, and we test this library with etcd 3.4.

@frostyplanet
Copy link
Author

frostyplanet commented Jul 7, 2021

Diff between proto in luncj/etcd-rs , I don't see much difference aside from comment and intention.
I suspect the failure in example is related to tonic the grpc library (but I don't know alot about it)

@davidli2010
Copy link
Contributor

You can upgrade your etcd to 3.4 and try again.

@vladislavirkin
Copy link

Check your endpoints.
You should connect to port 2379, not 2380!

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

No branches or pull requests

3 participants