Skip to content

Instantly share code, notes, and snippets.

@avelino
Created May 18, 2017 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avelino/5627d4b464a131e0fe46699e0def4643 to your computer and use it in GitHub Desktop.
Save avelino/5627d4b464a131e0fe46699e0def4643 to your computer and use it in GitHub Desktop.
PANIC: interface conversion: interface {} is cinemarknts.Data, not map[string]interface {}
goroutine 7 [running]:
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.(*Recovery).ServeHTTP.func1(0x1a00028, 0xc42000e148, 0xc420015500)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/recovery.go:41 +0x13a
panic(0x13da820, 0xc4201383c0)
/usr/local/Cellar/go/1.8.1/libexec/src/runtime/panic.go:489 +0x2cf
main.handler(0x1a00028, 0xc42000e148, 0xc42000b500)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/main.go:49 +0x10ca
net/http.HandlerFunc.ServeHTTP(0x1467698, 0x1a00028, 0xc42000e148, 0xc42000b500)
/usr/local/Cellar/go/1.8.1/libexec/src/net/http/server.go:1942 +0x44
github.com/nuveo/cinemarknotas.poc/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc420016960, 0x1a00028, 0xc42000e148, 0xc42000b500)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/gorilla/mux/mux.go:114 +0x10c
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.Wrap.func1(0x1a00028, 0xc42000e148, 0xc42000b300, 0xc4200e9b20)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/negroni.go:46 +0x4d
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.HandlerFunc.ServeHTTP(0xc4200e9060, 0x1a00028, 0xc42000e148, 0xc42000b300, 0xc4200e9b20)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/negroni.go:29 +0x4e
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.middleware.ServeHTTP(0x161dec0, 0xc4200e9060, 0xc4200e90e0, 0x1a00028, 0xc42000e148, 0xc42000b300)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/negroni.go:38 +0xb4
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.(middleware).ServeHTTP-fm(0x1a00028, 0xc42000e148, 0xc42000b300)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/negroni.go:38 +0x60
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.(*Static).ServeHTTP(0xc420015ad0, 0x1a00028, 0xc42000e148, 0xc42000b300, 0xc4200e9b00)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/static.go:34 +0x8c
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.middleware.ServeHTTP(0x161c640, 0xc420015ad0, 0xc4200e90c0, 0x1a00028, 0xc42000e148, 0xc42000b300)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/negroni.go:38 +0xb4
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.(middleware).ServeHTTP-fm(0x1a00028, 0xc42000e148, 0xc42000b300)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/negroni.go:38 +0x60
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.(*Logger).ServeHTTP(0xc420015530, 0x1a00028, 0xc42000e148, 0xc42000b300, 0xc4200e9ae0)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/logger.go:65 +0x89
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.middleware.ServeHTTP(0x161c580, 0xc420015530, 0xc4200e90a0, 0x1a00028, 0xc42000e148, 0xc42000b300)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/negroni.go:38 +0xb4
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.(middleware).ServeHTTP-fm(0x1a00028, 0xc42000e148, 0xc42000b300)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/negroni.go:38 +0x60
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.(*Recovery).ServeHTTP(0xc420015500, 0x1a00028, 0xc42000e148, 0xc42000b300, 0xc4200e9ac0)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/recovery.go:64 +0x82
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.middleware.ServeHTTP(0x161c600, 0xc420015500, 0xc4200e9080, 0x1a00028, 0xc42000e148, 0xc42000b300)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/negroni.go:38 +0xb4
github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni.(*Negroni).ServeHTTP(0xc420015b30, 0x1621680, 0xc4201002a0, 0xc42000b300)
/Users/avelino/src/github.com/nuveo/cinemarknotas.poc/vendor/github.com/urfave/negroni/negroni.go:86 +0x10d
net/http.serverHandler.ServeHTTP(0xc42009cd10, 0x1621680, 0xc4201002a0, 0xc42000b300)
/usr/local/Cellar/go/1.8.1/libexec/src/net/http/server.go:2568 +0x92
net/http.(*conn).serve(0xc4200a5220, 0x1621d40, 0xc42011e040)
/usr/local/Cellar/go/1.8.1/libexec/src/net/http/server.go:1825 +0x612
created by net/http.(*Server).Serve
/usr/local/Cellar/go/1.8.1/libexec/src/net/http/server.go:2668 +0x2ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment