-
Notifications
You must be signed in to change notification settings - Fork 29
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
Error when using urllib3 2.x.x release #70
Comments
If urllib3 is downgraded to 1.26.16 then the problem disappears. |
We also get the same error: https://github.com/cherrypy/cheroot/actions/runs/5107356552/jobs/9190603385#step:19:941 — I suppose this project needs to be adapted to make use of the new API. |
Oh, it looks like #69 might address this problem. |
@msabramo could you help to get the fix for this released? It's affecting many project CIs now due to the underlying urllib3 update to v2. |
By inheriting from `urllib3.connection.HTTPConnection` (that inherits from `httplib.HTTPConnection` itself), we can adapt to the internal changes in urllib3 2.0 that added a `request()` method that is incompatible with httplib.HTTPConnection.request. This fixes the incompatibility between urllib3 2.0 and requests 1.26+, which was the first version that stopped vendoring urllib3. Reference: docker/docker-py#3113 (comment) Fixes: msabramo#70
This is needed because `requests-unixsocket` is currently incompatible with the new release stream of `urllib3`[[1]] and it's unclear how long it will take to get the bugfix PR[[2]] merged and a release published. [1]: msabramo/requests-unixsocket#70 [2]: msabramo/requests-unixsocket#69
FYI to all: since this project seems to be abandoned, but its longevity is important to my team, we've forked the project as
We've migrated the fix for this issue there, merged it, and released to PyPI as part of v0.4.0. |
@crgwbr : do you plan to eventually take over the requests-unixsocket pypi place now that the original requests-unixsocket is abandoneware? I have no idea whether that's possible, I don't know the policiess for pypi. |
Oh sorry, I realize this has already been asked in #69. In any case I just wanted to thank you @crgwbr for moving this forward! |
FTR, the maintainer has just responded to my email from May 29, 2023. Hopefully, we'll figure out getting some backup maintenance. |
I am trying to run a requests with a UNIX socket but it fails using the latest versions in PyPI. I guess it is related to the change in major version of urllib3 2.0.0 that happened in PyPI roughly 1 month ago
The text was updated successfully, but these errors were encountered: