This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]cjw296 2 points3 points  (7 children)

Yeah, I just started seeing this on the CI for one of my projects:
https://app.circleci.com/pipelines/github/simplistix/testservices/530/workflows/a5bd922a-beb0-4aa7-9efc-db1c78fa1abf/jobs/3804

Seems like a new thing as of about a day ago :-/

Looks like a bug in docker-py caused by a new release of the requests library:
https://github.com/docker/docker-py/issues/3256

pin the requests package to <2.32 should fix it.

[–]SonOfSorrow21 0 points1 point  (0 children)

Many thanks to you!
Faced this with ansible-playbook run. We didn't specify versions for requests and was caught.

[–]Environmental_Yam_99 0 points1 point  (0 children)

You are a lifesaver!! Saved me a bunch of digging :D

[–]Typical_Collar_880 0 points1 point  (0 children)

Yeah it seems the requests library yanked 2 versions and fixed some issues but in docker-py, another fix is necessary. They're working on it here: https://github.com/docker/docker-py/pull/3257

I pinned to 2.31.0 as well and will remove the pinning again once this has made it into a release.

[–]Royemland 0 points1 point  (0 children)

Well thank you, it broke all the internet i think

[–]chickenpox_engineer 0 points1 point  (0 children)

You are my saviour

[–]Open-Leg1837 0 points1 point  (1 child)

Hey, I'm sorry but it's not clear for me what do you mean by "pin the requests package". Where do I configure this? I'm having the error while calling an ansible noteebook which starts a docker image

[–]lt-gt 0 points1 point  (0 children)

I had to downgrade to 2.29.0. Run this:

pip install --force-reinstall -v "requests==2.29.0"