You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simply trying to create a Client() instance causes:
Traceback (most recent call last):
File "/home/xxx/new/ansible-test-suite/venv/lib/python3.5/site-packages/requests/packages/idna/core.py", line 327, in uts46_remap
raise IndexError()
IndexError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/xxx/new/ansible-test-suite/venv/lib/python3.5/site-packages/requests/models.py", line 370, in prepare_url
host = idna.encode(host, uts46=True).decode('utf-8')
File "/home/xxx/new/ansible-test-suite/venv/lib/python3.5/site-packages/requests/packages/idna/core.py", line 340, in encode
s = uts46_remap(s, std3_rules, transitional)
File "/home/xxx/new/ansible-test-suite/venv/lib/python3.5/site-packages/requests/packages/idna/core.py", line 332, in uts46_remap
_unot(code_point), pos + 1, repr(domain)))
requests.packages.idna.core.InvalidCodepoint: Codepoint U+0025 not allowed at position 1 in '%2fvar%2flib%2flxd%2funix.socket'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/xxx/new/ansible-test-suite/venv/lib/python3.5/site-packages/pylxd/client.py", line 204, in __init__
response = self.api.get()
File "/home/xxx/new/ansible-test-suite/venv/lib/python3.5/site-packages/pylxd/client.py", line 100, in get
self._api_endpoint, *args, **kwargs)
File "/home/xxx/new/ansible-test-suite/venv/lib/python3.5/site-packages/requests/sessions.py", line 501, in get
return self.request('GET', url, **kwargs)
File "/home/xxx/new/ansible-test-suite/venv/lib/python3.5/site-packages/requests/sessions.py", line 474, in request
prep = self.prepare_request(req)
File "/home/xxx/new/ansible-test-suite/venv/lib/python3.5/site-packages/requests/sessions.py", line 407, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/home/xxx/new/ansible-test-suite/venv/lib/python3.5/site-packages/requests/models.py", line 302, in prepare
self.prepare_url(url, params)
File "/home/xxx/new/ansible-test-suite/venv/lib/python3.5/site-packages/requests/models.py", line 372, in prepare_url
raise InvalidURL('URL has an invalid label.')
requests.exceptions.InvalidURL: URL has an invalid label.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "mkcontainer.py", line 8, in <module>
client = pylxd.Client()
File "/home/xxx/new/ansible-test-suite/venv/lib/python3.5/site-packages/pylxd/client.py", line 211, in __init__
raise exceptions.ClientConnectionFailed()
pylxd.exceptions.ClientConnectionFailed
I'm only filing this ticket to raise awareness of the issue. I think the resolution lies upstream.
The text was updated successfully, but these errors were encountered:
See https://github.com/kennethreitz/requests/issues/3687 and msabramo/requests-unixsocket#24
Simply trying to create a
Client()
instance causes:I'm only filing this ticket to raise awareness of the issue. I think the resolution lies upstream.
The text was updated successfully, but these errors were encountered: