Skip to content

[Bug]: go 1.20.6: "http: invalid Host header, host port waiting failed" #1359

Closed

Description

Testcontainers version

0.21.0

Using the latest Testcontainers version?

Yes

Host OS

OSX and Linux

Host arch

OSX arm64, Linux amd64

Go version

1.20.6

What happened?

With Go 1.20.6, I start getting an error "http: invalid Host header, host port waiting failed" when setting up new containers. From doing some debugging, it seems to be coming from the ryuk setup. This appears to be the relevant change in the standard library: golang/go#61076, since it introduces that check that returns "invalid Host header". From doing the debugging in the screenshot below, the Host that Go is choking on is "/var/run/docker.sock".

image
image
image

Relevant log output

No response

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugAn issue with the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions