-
Notifications
You must be signed in to change notification settings - Fork 18k
[bug] net/http: read: connection reset by peer when using https #73394
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
Comments
Seems like a server issue. Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
not a server issue {
"AR": "ar",
"CC": "gcc",
"CGO_CFLAGS": "-O2 -g",
"CGO_CPPFLAGS": "",
"CGO_CXXFLAGS": "-O2 -g",
"CGO_ENABLED": "1",
"CGO_FFLAGS": "-O2 -g",
"CGO_LDFLAGS": "-O2 -g",
"CXX": "g++",
"GCCGO": "gccgo",
"GO111MODULE": "on",
"GOAMD64": "v1",
"GOARCH": "amd64",
"GOBIN": "",
"GOCACHE": "/home/fanybook/.cache/go-build",
"GOENV": "/home/fanybook/.config/go/env",
"GOEXE": "",
"GOEXPERIMENT": "",
"GOFLAGS": "",
"GOGCCFLAGS": "-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build160955960=/tmp/go-build -gno-record-gcc-switches",
"GOHOSTARCH": "amd64",
"GOHOSTOS": "linux",
"GOINSECURE": "",
"GOMOD": "/home/fanybook/_D/workspace-gitee/fanybook/letsgo-next/go.mod",
"GOMODCACHE": "/home/fanybook/go/pkg/mod",
"GONOPROXY": "",
"GONOSUMDB": "",
"GOOS": "linux",
"GOPATH": "/home/fanybook/go",
"GOPRIVATE": "",
"GOPROXY": "https://goproxy.cn,direct",
"GOROOT": "/usr/local/go",
"GOSUMDB": "sum.golang.org",
"GOTMPDIR": "",
"GOTOOLCHAIN": "auto",
"GOTOOLDIR": "/usr/local/go/pkg/tool/linux_amd64",
"GOVCS": "",
"GOVERSION": "go1.22.8",
"GOWORK": "",
"PKG_CONFIG": "pkg-config"
}
|
@FiloSottile @zxc111 @WeidiDeng @neild not a server issue no this problem in postman |
@seankhliao why close my issue |
The peer has rejected the connection, that can happen for any number of reasons. This is not the place to ask. |
Go version
go version go1.22.8 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
read: connection reset by peer
go1.20.3 ❌
go1.22.8 ❌
go1.22.12 ❌
When I attempt to fetch 500 items at once using http.Get (using https, url very long), the request fails with the https scheme, resulting in a "read: connection reset by peer" error.
but succeeds with the http scheme
What did you expect to see?
it can work
The text was updated successfully, but these errors were encountered: