python-etcd icon indicating copy to clipboard operation
python-etcd copied to clipboard

get_machines during connection attempt fails

Open jbrendel opened this issue 8 years ago • 1 comments

I'm running a recent 3.* image of etcd in a container. I then try to connect to this instance, like so:

from etcd import client
c = client.Client(host="127.0.0.1", port=2379)

This results in:

HTTPError: 404 Client Error: Not Found

The traceback reveals that this is thrown here:

File "/home/jbrendel/projects/pani/local/lib/python2.7/site-packages/etcd/server_ops.py", line 47, in get_machines
  response = self.client.send(2, 'get', fq_path, allow_reconnect=False)

Adding a print statement there shows that it tries to read /keys/_etcd/machines

My etcd version doesn't have this key, though.

What seems to be the problem?

jbrendel avatar Jul 12 '17 20:07 jbrendel

I'm facing the same issue. Any luck with it?

manishshambu avatar Mar 16 '18 01:03 manishshambu