Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if err := Models.DB.Raw(s).Find(laps).Error; err != nil #64

Open
matveynator opened this issue Dec 13, 2022 · 0 comments
Open

if err := Models.DB.Raw(s).Find(laps).Error; err != nil #64

matveynator opened this issue Dec 13, 2022 · 0 comments
Assignees
Labels
bug Something isn't working
Projects

Comments

@matveynator
Copy link
Owner

2022/12/13 15:23:32 [Recovery] 2022/12/13 - 15:23:32 panic recovered:
runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:260 (0x104bc35)
panicmem: panic(memoryError)
/usr/local/go/src/runtime/signal_unix.go:835 (0x104bc05)
sigpanic: panicmem()
/Users/matvey/chicha/vendor/gorm.io/gorm/gorm.go:355 (0x14b5758)
(*DB).getInstance: if db.clone > 0 {
/Users/matvey/chicha/vendor/gorm.io/gorm/chainable_api.go:296 (0x14aec12)
(*DB).Raw: tx = db.getInstance()
/Users/matvey/chicha/Packages/View/View.go:90 (0x156fbd1)
(*View).Homepage: if err := Models.DB.Raw(s).Find(laps).Error; err != nil {
/Users/matvey/chicha/vendor/github.com/gin-gonic/gin/context.go:165 (0x1459381)
(*Context).Next: c.handlersc.index
/Users/matvey/chicha/vendor/github.com/gin-gonic/gin/recovery.go:99 (0x145936c)
CustomRecoveryWithWriter.func1: c.Next()
/Users/matvey/chicha/vendor/github.com/gin-gonic/gin/context.go:165 (0x14584c6)
(*Context).Next: c.handlersc.index
/Users/matvey/chicha/vendor/github.com/gin-gonic/gin/logger.go:241 (0x14584a9)
LoggerWithConfig.func1: c.Next()
/Users/matvey/chicha/vendor/github.com/gin-gonic/gin/context.go:165 (0x145757d)
(*Context).Next: c.handlersc.index
/Users/matvey/chicha/vendor/github.com/gin-gonic/gin/gin.go:489 (0x1457205)
(*Engine).handleHTTPRequest: c.Next()
/Users/matvey/chicha/vendor/github.com/gin-gonic/gin/gin.go:445 (0x1456d64)
(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
/usr/local/go/src/net/http/server.go:2947 (0x12c468b)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/local/go/src/net/http/server.go:1991 (0x12bf8a6)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/local/go/src/runtime/asm_amd64.s:1594 (0x1066e80)
goexit: BYTE $0x90 // NOP

@matveynator matveynator added the bug Something isn't working label Dec 13, 2022
@matveynator matveynator self-assigned this Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
chicha
Awaiting triage
Development

No branches or pull requests

1 participant