GithubHelp home page GithubHelp logo

Comments (5)

zloyded avatar zloyded commented on September 4, 2024

in __init__ of Client can see defaults

            self,
            host='127.0.0.1',
            port=4001,
...

Why it here? If i need service discovery this code would be ignored, and will try to init connection by host in the defaults!!!

from python-etcd.

zloyded avatar zloyded commented on September 4, 2024

i see dns resolver problems with VPN

from python-etcd.

zloyded avatar zloyded commented on September 4, 2024

okay!
I have correct resolve my SRV record in Python:

srv_domain='_etcd-client._tcp.my_sub.my_company.my_zone'
q = dns.resolver.query(srv_domain, 'SRV')
for h in q:
   print(h.target.to_text(omit_final_dot=True), h.port)
0etcd0002.e.my_co.my_z 2379
0etcd0003.e.my_co.my_z 2379
1etcd0002.e.my_co.my_z 2379

and try to discover

ec = etcd.Client(srv_domain=srv_domain)
ec.stats
>>
EtcdConnectionFailed: Connection to etcd failed due to MaxRetryError("HTTPConnectionPool(host='127.0.0.1', port=4001): Max retries exceeded with url: /v2/stats/self (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f1d982b4910>: Failed to establish a new connection: [Errno 111] Connection refused'))")

from python-etcd.

zloyded avatar zloyded commented on September 4, 2024

Hello?

from python-etcd.

lavagetto avatar lavagetto commented on September 4, 2024

IF you correctly read the documentation you would know what you're doing wrong.

from python-etcd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.