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

bug: panic when sending to closed request #3

Open
Bidon15 opened this issue Jan 31, 2024 · 0 comments
Open

bug: panic when sending to closed request #3

Bidon15 opened this issue Jan 31, 2024 · 0 comments

Comments

@Bidon15
Copy link
Member

Bidon15 commented Jan 31, 2024

time="2024-01-31T18:14:06Z" level=error msg="Failed to send request: Post \"https://rpc-snapscale.lunaroasis.net/\": http: invalid Read on closed Body"
2024/01/31 18:14:06 http: panic serving 100.64.46.71:50486: invalid WriteHeader code 0
goroutine 3069625 [running]:
net/http.(*conn).serve.func1()
	/usr/local/go/src/net/http/server.go:1868 +0xb9
panic({0x6c81a0?, 0xc000a800f0?})
	/usr/local/go/src/runtime/panic.go:920 +0x270
net/http.checkWriteHeaderCode(...)
	/usr/local/go/src/net/http/server.go:1121
net/http.(*response).WriteHeader(0xc0006f0e00, 0x0)
	/usr/local/go/src/net/http/server.go:1155 +0xa0a
main.handleHttpRequest({0x7b23f0, 0xc0006f0e00}, 0xc000281300)
	/app/main.go:134 +0x922
main.handleRequest({0x7b23f0?, 0xc0006f0e00?}, 0x6320ed?)
	/app/main.go:241 +0x1d
net/http.HandlerFunc.ServeHTTP(0x10?, {0x7b23f0?, 0xc0006f0e00?}, 0xc000b231ac?)
	/usr/local/go/src/net/http/server.go:2136 +0x29
net/http.(*ServeMux).ServeHTTP(0x40d245?, {0x7b23f0, 0xc0006f0e00}, 0xc000281300)
	/usr/local/go/src/net/http/server.go:2514 +0x142
net/http.serverHandler.ServeHTTP({0x7b1430?}, {0x7b23f0?, 0xc0006f0e00?}, 0x6?)
	/usr/local/go/src/net/http/server.go:2938 +0x8e
net/http.(*conn).serve(0xc000a4b8c0, {0x7b2990, 0xc00009ac60})
	/usr/local/go/src/net/http/server.go:2009 +0x5f4
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

No branches or pull requests

1 participant