monocular
monocular copied to clipboard
PANIC: runtime error: invalid memory address or nil pointer dereference
After deploying monocular to my cluster, I navigated to the ui, which subsequently invoked the /v1/charts endpoint. That endpoint returned the payload below:
PANIC: runtime error: invalid memory address or nil pointer dereference
goroutine 9187 [running]:
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.(*Recovery).ServeHTTP.func1(0x7f5468728a48, 0xc4200ac288, 0xc422d68c60)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/recovery.go:41 +0x13a
panic(0x165cb00, 0x236fac0)
/usr/local/go/src/runtime/panic.go:491 +0x283
github.com/kubernetes-helm/monocular/src/api/data/helpers.MakeChartResource(0x2300ae0, 0xc4200ac2e0, 0x0, 0xc421c6e250)
/go/src/github.com/kubernetes-helm/monocular/src/api/data/helpers/helpers.go:63 +0x95
github.com/kubernetes-helm/monocular/src/api/data/helpers.MakeChartResources(0x2300ae0, 0xc4200ac2e0, 0xc4227ec000, 0x11cd, 0x1400, 0x0, 0xc420369300, 0xc420eb5598)
/go/src/github.com/kubernetes-helm/monocular/src/api/data/helpers/helpers.go:106 +0x236
github.com/kubernetes-helm/monocular/src/api/handlers/charts.(*ChartHandlers).GetAllCharts(0xc423bef860, 0x7f5468728a48, 0xc4200ac288, 0xc42131e200)
/go/src/github.com/kubernetes-helm/monocular/src/api/handlers/charts/charts.go:115 +0x1fd
github.com/kubernetes-helm/monocular/src/api/handlers/charts.(*ChartHandlers).GetAllCharts-fm(0x7f5468728a48, 0xc4200ac288, 0xc42131e200)
/go/src/github.com/kubernetes-helm/monocular/src/api/main.go:83 +0x48
net/http.HandlerFunc.ServeHTTP(0xc423a859d0, 0x7f5468728a48, 0xc4200ac288, 0xc42131e200)
/usr/local/go/src/net/http/server.go:1918 +0x44
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc422b624b0, 0x7f5468728a48, 0xc4200ac288, 0xc42131e200)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/gorilla/mux/mux.go:114 +0xdc
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.Wrap.func1(0x7f5468728a48, 0xc4200ac288, 0xc42039a700, 0xc420646ac0)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/negroni.go:46 +0x4d
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.HandlerFunc.ServeHTTP(0xc423c78200, 0x7f5468728a48, 0xc4200ac288, 0xc42039a700, 0xc420646ac0)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/negroni.go:29 +0x4e
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.middleware.ServeHTTP(0x2308560, 0xc423c78200, 0xc423c782c0, 0x7f5468728a48, 0xc4200ac288, 0xc42039a700)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/negroni.go:38 +0xa5
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.(middleware).ServeHTTP-fm(0x7f5468728a48, 0xc4200ac288, 0xc42039a700)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/negroni.go:38 +0x60
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/rs/cors.(*Cors).ServeHTTP(0xc423d36160, 0x7f5468728a48, 0xc4200ac288, 0xc42039a700, 0xc420646aa0)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/rs/cors/cors.go:246 +0xe6
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.middleware.ServeHTTP(0x23014a0, 0xc423d36160, 0xc423c782a0, 0x7f5468728a48, 0xc4200ac288, 0xc42039a700)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/negroni.go:38 +0xa5
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.(middleware).ServeHTTP-fm(0x7f5468728a48, 0xc4200ac288, 0xc42039a700)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/negroni.go:38 +0x60
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.(*Static).ServeHTTP(0xc422748450, 0x7f5468728a48, 0xc4200ac288, 0xc42039a700, 0xc420646a80)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/static.go:53 +0x6f2
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.middleware.ServeHTTP(0x23015a0, 0xc422748450, 0xc423c78280, 0x7f5468728a48, 0xc4200ac288, 0xc42039a700)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/negroni.go:38 +0xa5
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.(middleware).ServeHTTP-fm(0x7f5468728a48, 0xc4200ac288, 0xc42039a700)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/negroni.go:38 +0x60
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.(*Logger).ServeHTTP(0xc422d68c90, 0x7f5468728a48, 0xc4200ac288, 0xc42039a700, 0xc420646a60)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/logger.go:65 +0x8b
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.middleware.ServeHTTP(0x23014e0, 0xc422d68c90, 0xc423c78260, 0x7f5468728a48, 0xc4200ac288, 0xc42039a700)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/negroni.go:38 +0xa5
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.(middleware).ServeHTTP-fm(0x7f5468728a48, 0xc4200ac288, 0xc42039a700)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/negroni.go:38 +0x60
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.(*Recovery).ServeHTTP(0xc422d68c60, 0x7f5468728a48, 0xc4200ac288, 0xc42039a700, 0xc420646a40)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/recovery.go:64 +0x82
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.middleware.ServeHTTP(0x2301560, 0xc422d68c60, 0xc423c78220, 0x7f5468728a48, 0xc4200ac288, 0xc42039a700)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/negroni.go:38 +0xa5
github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni.(*Negroni).ServeHTTP(0xc4227484b0, 0x23165a0, 0xc4204f6000, 0xc42039a700)
/go/src/github.com/kubernetes-helm/monocular/src/api/vendor/github.com/urfave/negroni/negroni.go:96 +0xf5
net/http.serverHandler.ServeHTTP(0xc422a161a0, 0x23165a0, 0xc4204f6000, 0xc42039a700)
/usr/local/go/src/net/http/server.go:2619 +0xb4
net/http.(*conn).serve(0xc4200bc780, 0x23179a0, 0xc423d5a600)
/usr/local/go/src/net/http/server.go:1801 +0x71d
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2720 +0x288