kragniz / kragniz/python-etcd3

etcd3 does not connect to 3.5.0 server but etcd does

Aperta
#1,900 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
450
Fork
194
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I am trying to work out why my usage of `etcd3` in my Python 3 application does not connect to the etcd server, however using `etcd` does.

My server is 3.5.0:
```
curl -L http://127.0.0.1:4001/version
{"etcdserver":"3.5.0","etcdcluster":"3.5.0"}
```
When I try connecting with `etcd3`, I get the following "etcd connection failed" error:
```
python3
Python 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import etcd3
>>> client = etcd3.client(host='127.0.0.1', port=4001)
>>> client.get('/courses/crmpicco-sf440/sss')

etcd3.exceptions.ConnectionFailedError: etcd connection failed
```
However, when I do the same with `etcd` it works. 😕

```
python3
Python 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import etcd
>>> client = etcd.Client(host='127.0.0.1', port=4001)
>>> scratch = client.read("/courses/crmpicco-sf440/sss").value
>>> print(scratch)
71
```

```
pip3 list | grep etcd
etcd3 0.12.0
python-etcd 0.4.5
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Reproduce the failure with Python 3.8, etcd3 0.12.0, and an etcd 3.5.0 server using `etcd3.client(host='127.0.0.1', port=4001)` followed by `client.get(...)`. Compare that path with the working `python-etcd` request and inspect the client connection and get entry points. Done means the reported etcd3 request connects and returns the existing value against the 3.5.0 server.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
api
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.