Skip to content

cmd/go: unexpected EOF error in proxy fetch path lacks error context #52727

Closed
@bcmills

Description

@bcmills
            # get https://proxy.golang.org/golang.org/x/xerrors/@v/v0.0.0-20191011141410-1b5146add898.mod
            # get https://proxy.golang.org/golang.org/x/xerrors/@v/v0.0.0-20191011141410-1b5146add898.mod: 200 OK (0.003s)
            golang.org/x/tools/cmd/goimports imports
            	golang.org/x/sys/execabs: golang.org/x/[email protected]: unexpected EOF
            # get https://proxy.golang.org/golang.org/x/mod/@v/list
            # get https://proxy.golang.org/golang.org/x/xerrors/@v/list
            # get https://proxy.golang.org/golang.org/x/xerrors/@v/list: 200 OK (0.013s)

This may well be a bug in the proxy.golang.org server, but without more detail from the error message we don't have a good way to track it down. Step one is to improve the error message to describe exactly which URL produced the unexpected EOF error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions