Skip to content

Conversation

tmacro
Copy link
Contributor

@tmacro tmacro commented Sep 24, 2016

between version 1.12.0 and 1.14.0 of dnspython the return value of answer.target.to_text(omit_final_dot=True) has switched from a python string to a byte string, causing this exception to be thrown .

etcd.EtcdException: Could not get the list of servers, maybe you provided the wrong host(s) to connect to?

further up the stack trace is this urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host="b'example.com'", port=2379): Max retries exceeded with url: /v2/machines (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f1eb30af5f8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
notice the host argument.

calling .decode() on the string returned from dns.resolver.query() fixes this issue.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 88.181% when pulling 26c8fe5 on tmacro:master into 0d0145f on jplana:master.

@coveralls
Copy link

coveralls commented Sep 24, 2016

Coverage Status

Coverage decreased (-0.09%) to 88.36% when pulling 1cf714e on tmacro:master into 0d0145f on jplana:master.

@tmacro tmacro closed this Sep 24, 2016
@coveralls
Copy link

coveralls commented Sep 24, 2016

Coverage Status

Coverage decreased (-0.09%) to 88.36% when pulling a22d0df on tmacro:master into 0d0145f on jplana:master.

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

Successfully merging this pull request may close these issues.

2 participants