-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requests 2.12 has broken 'er? #24
Comments
I can confirm this (was trying to build new For the sake of completeness, here's my stack trace:
|
requests no-longer prepares URLs that do not start with "http://" or "https://" see also https://github.com/kennethreitz/requests/issues/3734 |
Seems to be fixed as of at least 2.12.3. |
Yeah there was a problem in some versions of |
Has the just-released Requests 2.12 library broken something? Just today, a unix socket request gives me the error "URL has invalid label".
Steps to reproduce:
On a machine with Docker running and a user that can access /var/run/docker.sock.
Make a virtual environment (with Python 3.4+) and install requests_unixsocket:
pyvenv venv
. venv/bin/activate
pip install --upgrade pip
pip install requests-unixsocket
Note that requests is 2.12.
In a python interpreter try to get a list of docker containers:
>>> import requests_unixsocket
>>> session = requests_unixsocket.Session()
>>> r = session.get("http+unix://%2Fvar%2Frun%2Fdocker.sock/containers/json")
It throws the error.
requests.exceptions.InvalidURL: URL has an invalid label.
If I do the same with requests 2.11.1, it works fine.
The requests 2.12 release notes say there's an upgrade to IDNA2008.
The text was updated successfully, but these errors were encountered: