wuzzapcom / toussaint

MIT License
0 stars 0 forks source link

Game of the month parsing failure #4

Open wuzzapcom opened 5 years ago

wuzzapcom commented 5 years ago

Bot is not able to parse /search for game of the month in psn

logs:

toussaint-backend_1   | 2019/07/21 20:00:55 http: panic serving 172.18.0.2:46888: interface conversion: interface {} is nil, not string
toussaint-backend_1   | goroutine 50 [running]:
toussaint-backend_1   | net/http.(*conn).serve.func1(0xc000384280)
toussaint-backend_1   |         /usr/local/go/src/net/http/server.go:1746 +0xd0
toussaint-backend_1   | panic(0x773160, 0xc000107110)
toussaint-backend_1   |         /usr/local/go/src/runtime/panic.go:513 +0x1b9
toussaint-backend_1   | toussaint/backend/app.parseSingleGame(0xc000177980, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
toussaint-backend_1   |         /go/src/toussaint/backend/app/psn.go:121 +0x999
toussaint-backend_1   | toussaint/backend/app.parseSearchAnswer(0xc000136000, 0xf1af, 0xfe00, 0xf1af, 0xfe00, 0x0, 0x0, 0xc00039600f)
toussaint-backend_1   |         /go/src/toussaint/backend/app/psn.go:159 +0x308
toussaint-backend_1   | toussaint/backend/app.searchByName(0xc000396014, 0x7, 0x4, 0xc000396014, 0x7, 0x0, 0x74e401)
toussaint-backend_1   |         /go/src/toussaint/backend/app/psn.go:190 +0x213
toussaint-backend_1   | toussaint/backend/app.handleSearch(0x837680, 0xc0000ea700, 0xc0000fc900)
toussaint-backend_1   |         /go/src/toussaint/backend/app/rest.go:24 +0x97
toussaint-backend_1   | net/http.HandlerFunc.ServeHTTP(0x7ec440, 0x837680, 0xc0000ea700, 0xc0000fc900)
toussaint-backend_1   |         /usr/local/go/src/net/http/server.go:1964 +0x44
toussaint-backend_1   | toussaint/backend/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc0000e20c0, 0x837680, 0xc0000ea700, 0xc0000fc700)
toussaint-backend_1   |         /go/src/toussaint/backend/vendor/github.com/gorilla/mux/mux.go:212 +0xd0
toussaint-backend_1   | net/http.serverHandler.ServeHTTP(0xc0000652b0, 0x837680, 0xc0000ea700, 0xc0000fc700)
toussaint-backend_1   |         /usr/local/go/src/net/http/server.go:2741 +0xab
toussaint-backend_1   | net/http.(*conn).serve(0xc000384280, 0x837ac0, 0xc00004c040)
toussaint-backend_1   |         /usr/local/go/src/net/http/server.go:1847 +0x646
toussaint-backend_1   | created by net/http.(*Server).Serve
toussaint-backend_1   |         /usr/local/go/src/net/http/server.go:2851 +0x2f5