Skip to content

Instantly share code, notes, and snippets.

@krakiun
Created December 7, 2018 00:08
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 krakiun/5c886c9ca944ecf2f04b63a51bd3ee5b to your computer and use it in GitHub Desktop.
Save krakiun/5c886c9ca944ecf2f04b63a51bd3ee5b to your computer and use it in GitHub Desktop.
2018/12/07 00:55:02 [Recovery] 2018/12/07 - 00:55:02 panic recovered:
POST /api/videos/ HTTP/1.1
Host: 127.0.0.1:3000
Accept: */*
Accept-Encoding: gzip, deflate
Authorization: Bearer ubTt6Is3sznzxh9x9KHVZRN8
Cache-Control: no-cache
Connection: keep-alive
Content-Length: 0
Postman-Token: be687612-156a-449d-b6af-eda1368755e5
User-Agent: PostmanRuntime/7.3.0
runtime error: invalid memory address or nil pointer dereference
/usr/local/Cellar/go/1.10.1/libexec/src/runtime/panic.go:502 (0x102ac68)
gopanic: reflectcall(nil, unsafe.Pointer(d.fn), deferArgs(d), uint32(d.siz), uint32(d.siz))
/usr/local/Cellar/go/1.10.1/libexec/src/runtime/panic.go:63 (0x1029cdd)
panicmem: panic(memoryError)
/usr/local/Cellar/go/1.10.1/libexec/src/runtime/signal_unix.go:388 (0x103fd09)
sigpanic: panicmem()
/Users/admin/go/src/github.com/scaltro/upload.jobdone.net/app/videos/service.go:27 (0x156f312)
(*Service).Insert: return this.repo.Insert(item)
/Users/admin/go/src/github.com/scaltro/upload.jobdone.net/app/infrastructure/web/videos.go:48 (0x1588537)
(*WebServer).videoCreate: err := this.VideoService.Insert(video)
/Users/admin/go/src/github.com/scaltro/upload.jobdone.net/app/infrastructure/web/routes.go:32 (0x1589833)
videoCreate)-fm: video.POST("/", this.videoCreate)
/Users/admin/go/src/github.com/gin-gonic/gin/context.go:108 (0x155b5c2)
(*Context).Next: c.handlers[c.index](c)
/Users/admin/go/src/github.com/scaltro/upload.jobdone.net/app/infrastructure/web/auth.go:53 (0x1586ca0)
(*WebServer).requireAuth: c.Next()
/Users/admin/go/src/github.com/scaltro/upload.jobdone.net/app/infrastructure/web/routes.go:21 (0x15896a3)
requireAuth)-fm: profile.Use(this.requireAuth)
/Users/admin/go/src/github.com/gin-gonic/gin/context.go:108 (0x155b5c2)
(*Context).Next: c.handlers[c.index](c)
/Users/admin/go/src/github.com/scaltro/upload.jobdone.net/app/infrastructure/web/webserver.go:43 (0x158954a)
(*WebServer).Start.func1: c.Next()
/Users/admin/go/src/github.com/gin-gonic/gin/context.go:108 (0x155b5c2)
(*Context).Next: c.handlers[c.index](c)
/Users/admin/go/src/github.com/gin-gonic/gin/recovery.go:48 (0x156bc09)
RecoveryWithWriter.func1: c.Next()
/Users/admin/go/src/github.com/gin-gonic/gin/context.go:108 (0x155b5c2)
(*Context).Next: c.handlers[c.index](c)
/Users/admin/go/src/github.com/gin-gonic/gin/logger.go:83 (0x156aebb)
LoggerWithWriter.func1: c.Next()
/Users/admin/go/src/github.com/gin-gonic/gin/context.go:108 (0x155b5c2)
(*Context).Next: c.handlers[c.index](c)
/Users/admin/go/src/github.com/gin-gonic/gin/gin.go:359 (0x1562f25)
(*Engine).handleHTTPRequest: c.Next()
/Users/admin/go/src/github.com/gin-gonic/gin/gin.go:326 (0x1562772)
(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
/usr/local/Cellar/go/1.10.1/libexec/src/net/http/server.go:2694 (0x12dea3b)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/local/Cellar/go/1.10.1/libexec/src/net/http/server.go:1830 (0x12dabf0)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/local/Cellar/go/1.10.1/libexec/src/runtime/asm_amd64.s:2361 (0x10564d0)
goexit: BYTE $0x90 // NOP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment