Skip to content

Instantly share code, notes, and snippets.

@tleyden
Created October 20, 2015 22:30
Show Gist options
  • Save tleyden/a3af993208dbe19aa9c8 to your computer and use it in GitHub Desktop.
Save tleyden/a3af993208dbe19aa9c8 to your computer and use it in GitHub Desktop.
2015/10/20 15:30:31 http: panic serving 127.0.0.1:60695: runtime error: invalid memory address or nil pointer dereference
goroutine 217 [running]:
net/http.(*conn).serve.func1(0xc820730e70, 0x5464a38, 0xc82026c478)
/usr/local/go/src/net/http/server.go:1287 +0xb5
github.com/couchbaselabs/cbgt.(*MsgRing).Messages(0x0, 0x0, 0x0, 0x0)
/Users/tleyden/Development/sync_gateway/src/github.com/couchbaselabs/cbgt/msg_ring.go:62 +0x41
github.com/couchbaselabs/cbgt/rest.(*LogGetHandler).ServeHTTP(0xc8202cb1e0, 0x7102098, 0xc820730f20, 0xc820182620)
/Users/tleyden/Development/sync_gateway/src/github.com/couchbaselabs/cbgt/rest/rest_log.go:38 +0x93
github.com/couchbaselabs/cbgt/rest.(*DiagGetHandler).ServeHTTP(0xc8203532f0, 0x7102098, 0xc820730f20, 0xc820182620)
/Users/tleyden/Development/sync_gateway/src/github.com/couchbaselabs/cbgt/rest/rest_diag.go:94 +0xc33
github.com/gorilla/mux.(*Router).ServeHTTP(0xc820010e10, 0x7102098, 0xc820730f20, 0xc820182620)
/Users/tleyden/Development/sync_gateway/src/github.com/gorilla/mux/mux.go:86 +0x2a6
github.com/couchbase/sync_gateway/rest.wrapRouter.func1(0x7102098, 0xc820730f20, 0xc820182620)
/Users/tleyden/Development/sync_gateway/src/github.com/couchbase/sync_gateway/rest/routing.go:292 +0x32d
net/http.HandlerFunc.ServeHTTP(0xc820501ba0, 0x7102098, 0xc820730f20, 0xc820182620)
/usr/local/go/src/net/http/server.go:1422 +0x3a
net/http.serverHandler.ServeHTTP(0xc8203ce000, 0x7102098, 0xc820730f20, 0xc820182620)
/usr/local/go/src/net/http/server.go:1862 +0x19e
net/http.(*conn).serve(0xc820730e70)
/usr/local/go/src/net/http/server.go:1361 +0xbee
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1910 +0x3f6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment