Skip to content

Instantly share code, notes, and snippets.

@sudheerDev
Created July 17, 2018 10:34
Show Gist options
  • Save sudheerDev/cbecd84787a2b899c1c4623263369b32 to your computer and use it in GitHub Desktop.
Save sudheerDev/cbecd84787a2b899c1c4623263369b32 to your computer and use it in GitHub Desktop.
{"level":"debug","ts":1531823529.7227802,"caller":"web/handlers.go:50","msg":"GET - /api/v4/channels/4tqx1ha5qbfj5mqhnqsxqawj7e/posts/unread"}
{"level":"error","ts":1531823529.7244754,"caller":"app/server.go:60","msg":"Please check the std error output for the stack trace"}
{"level":"error","ts":1531823529.7298934,"caller":"app/server.go:61","msg":"[runtime error: invalid memory address or nil pointer dereference]"}
goroutine 2220 [running]:
runtime/debug.Stack(0x0, 0x0, 0x1c6d960)
/usr/local/Cellar/go/1.10.2/libexec/src/runtime/debug/stack.go:24 +0xa7
runtime/debug.PrintStack()
/usr/local/Cellar/go/1.10.2/libexec/src/runtime/debug/stack.go:16 +0x22
github.com/mattermost/mattermost-server/vendor/github.com/gorilla/handlers.recoveryHandler.log(0x2026060, 0xc421d1c140, 0x2026080, 0x28279d8, 0x1, 0xc4212b46f0, 0x1, 0x1)
/Users/sudheer.t/go/src/github.com/mattermost/mattermost-server/vendor/github.com/gorilla/handlers/recovery.go:89 +0x70
github.com/mattermost/mattermost-server/vendor/github.com/gorilla/handlers.recoveryHandler.ServeHTTP.func1(0x2031520, 0xc42188b420, 0x2026060, 0xc421d1c140, 0x2026080, 0x28279d8, 0x1)
/Users/sudheer.t/go/src/github.com/mattermost/mattermost-server/vendor/github.com/gorilla/handlers/recovery.go:74 +0xe5
panic(0x1d07700, 0x27cbfc0)
/usr/local/Cellar/go/1.10.2/libexec/src/runtime/panic.go:502 +0x229
github.com/mattermost/mattermost-server/app.(*App).GetPostsForChannelAroundLastUnread(0xc420255400, 0xc422181b45, 0x1a, 0xc4219b6380, 0x1a, 0x1648d5e9a4b, 0x16527dd624b)
/Users/sudheer.t/go/src/github.com/mattermost/mattermost-server/app/post.go:612 +0x7c
github.com/mattermost/mattermost-server/api4.getPostsForChannelAroundLastUnread(0xc421831700, 0x2031520, 0xc42188b420, 0xc421831600)
/Users/sudheer.t/go/src/github.com/mattermost/mattermost-server/api4/post.go:184 +0x11d
github.com/mattermost/mattermost-server/web.Handler.ServeHTTP(0xc420255400, 0x1f25e50, 0x10001, 0x2031520, 0xc42188b420, 0xc421831600)
/Users/sudheer.t/go/src/github.com/mattermost/mattermost-server/web/handlers.go:131 +0x126d
github.com/mattermost/mattermost-server/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc420218700, 0x2031520, 0xc42188b420, 0xc421831600)
/Users/sudheer.t/go/src/github.com/mattermost/mattermost-server/vendor/github.com/gorilla/mux/mux.go:162 +0xed
github.com/mattermost/mattermost-server/app.(*CorsWrapper).ServeHTTP(0xc421d1c140, 0x2031520, 0xc42188b420, 0xc421831400)
/Users/sudheer.t/go/src/github.com/mattermost/mattermost-server/app/server.go:90 +0xa2
github.com/mattermost/mattermost-server/vendor/github.com/gorilla/handlers.recoveryHandler.ServeHTTP(0x2026060, 0xc421d1c140, 0x2026080, 0x28279d8, 0x1, 0x2031520, 0xc42188b420, 0xc421831400)
/Users/sudheer.t/go/src/github.com/mattermost/mattermost-server/vendor/github.com/gorilla/handlers/recovery.go:78 +0xb9
net/http.serverHandler.ServeHTTP(0xc4215f5110, 0x2031520, 0xc42188b420, 0xc421831400)
/usr/local/Cellar/go/1.10.2/libexec/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc422738280, 0x20323a0, 0xc42273d200)
/usr/local/Cellar/go/1.10.2/libexec/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
/usr/local/Cellar/go/1.10.2/libexec/src/net/http/server.go:2795 +0x27b
{"level":"debug","ts":1531823530.0224183,"caller":"web/handlers.go:50","msg":"POST - /api/v4/logs"}
{"level":"error","ts":1531823530.0225656,"caller":"web/context.go:60","msg":"{\"intl\":{\"id\":\"mobile.request.invalid_response\",\"defaultMessage\":\"Received invalid response from the server.\"}}","path":"/api/v4/logs","request_id":"agpc9rsk9jny5cmnju89ciijrc","ip_addr":"::1","user_id":"wjmu6z8dnjru7fdqs4npg4q6mw","method":"POST","err_where":"client","http_code":0,"err_details":""}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment