Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sebastienblanc/db8a98ee17570fa3d46b55b6ddab2922 to your computer and use it in GitHub Desktop.
Save sebastienblanc/db8a98ee17570fa3d46b55b6ddab2922 to your computer and use it in GitHub Desktop.
2020/10/09 16:10:26 http: panic serving 192.168.1.11:52089: runtime error: index out of range [5] with length 4
goroutine 22 [running]:
net/http.(*conn).serve.func1(0xc000341b80)
/usr/local/go/src/net/http/server.go:1801 +0x147
panic(0x1520f60, 0xc0006f1440)
/usr/local/go/src/runtime/panic.go:975 +0x3e9
main.ReconcileKubetoMC.func1(0xc00003c330)
/app/kubecraftadmin.go:42 +0x1f06
reflect.Value.call(0x1401700, 0xc000292a60, 0x13, 0x15e6cfb, 0x4, 0xc00067b7e8, 0x1, 0x1, 0x13c9a60, 0xc0001e2028, ...)
/usr/local/go/src/reflect/value.go:475 +0x8c7
reflect.Value.Call(0x1401700, 0xc000292a60, 0x13, 0xc00067b7e8, 0x1, 0x1, 0x0, 0xc000670100, 0xc00067b688)
/usr/local/go/src/reflect/value.go:336 +0xb9
github.com/sandertv/mcwss.(*Player).handleIncomingPacket(0xc00000a1e0, 0xc000792630, 0x24, 0xc00039a700, 0xf, 0x1, 0x13ba120, 0xc0000ae200, 0x0, 0x0)
/go/src/github.com/sandertv/mcwss/player.go:511 +0x3a5
github.com/sandertv/mcwss.(*Server).handleResponse(0xc0000d62c0, 0x179f520, 0xc0002d40e0, 0xc00028a000)
/go/src/github.com/sandertv/mcwss/server.go:153 +0x405
net/http.HandlerFunc.ServeHTTP(0xc000295340, 0x179f520, 0xc0002d40e0, 0xc00028a000)
/usr/local/go/src/net/http/server.go:2042 +0x44
net/http.(*ServeMux).ServeHTTP(0x204c540, 0x179f520, 0xc0002d40e0, 0xc00028a000)
/usr/local/go/src/net/http/server.go:2417 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002d4000, 0x179f520, 0xc0002d40e0, 0xc00028a000)
/usr/local/go/src/net/http/server.go:2843 +0xa3
net/http.(*conn).serve(0xc000341b80, 0x17a2020, 0xc0002d03c0)
/usr/local/go/src/net/http/server.go:1925 +0x8ad
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2969 +0x36c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment