Skip to content
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

ResponseHandler has removed the force_close method in aiohttp 3.11.x #920

Closed
bdraco opened this issue Nov 19, 2024 · 1 comment · Fixed by aio-libs/aiohttp#9997
Closed

Comments

@bdraco
Copy link
Member

bdraco commented Nov 19, 2024

Originally posted by @idan-rahamim-lendbuzz in #918 (comment)

Now i get another error AttributeError: 'ResponseHandler' object has no attribute 'force_close'
It comes from line 93 of stream.py

          > @idan-rahamim-lendbuzz Can you post the full trace?

Traceback (most recent call last):
File
"/Users/idan.rahamim/repos/sheriff-spec-tator/sheriff_spec_tator/utils/entities.py",
line 51, in validate
await validate_method()
File
"/Users/idan.rahamim/repos/sheriff-spec-tator/sheriff_spec_tator/validation/requirements
/bronze/production_dockerfile.py", line 38, in validate_general
if await DockerUtils.docker_exec_output("id -u") != "0":
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/idan.rahamim/repos/sheriff-spec-tator/sheriff_spec_tator/utils/docker.py", line
47, in docker_exec_output
chunk = await exec_start.read_out()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/idan.rahamim/Library/Caches/pypoetry/virtualenvs/sheriff-spec-tator-jHopqe-F-py3
.12/lib/python3.12/site-packages/aiodocker/stream.py", line 98, in read_out
await self._init()
File
"/Users/idan.rahamim/Library/Caches/pypoetry/virtualenvs/sheriff-spec-tator-jHopqe-F-py3
.12/lib/python3.12/site-packages/aiodocker/stream.py", line 93, in _init
protocol.force_close()
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ResponseHandler' object has no attribute 'force_close'

Originally posted by @idan-rahamim-lendbuzz in #918 (comment)

@bdraco
Copy link
Member Author

bdraco commented Nov 19, 2024

aiohttp 3.11.6 published

bdraco added a commit to home-assistant/core that referenced this issue Nov 19, 2024
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 a pull request may close this issue.

1 participant