Skip to content

aiohttp==3.9 issues #833

@Artucuno

Description

@Artucuno

Long story short

  • Expected behaviour:
    Features like attach stdin to work
  • Actual behaviour:
aiodocker.exceptions.DockerError: DockerError(500, "Cannot upgrade connection to vendored tcp protocol, the docker server has closed underlying socket. Status code: 101. Headers: <CIMultiDictProxy('Content-Type': 'application/vnd.docker.multiplexed-stream', 'Connection': 'Upgrade', 'Upgrade': 'tcp')>.")

How to reproduce

stream = container.attach(stdin=True, logs=True)
await stream.write_in(str(cmd + '\n').encode('utf-8'))

Your environment

aiohttp==3.9

Downgrading to aiohttp 3.8 fixed it, but support for 3.9 would be nice. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsprint:pyconus2024Issues marked for the sprint in PyCon US 2024

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions