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

There is some issue while integrating with Postgres , After running program I am getting this error , It is working fine with SQLite3 #11

Open
Gauthamjm007 opened this issue May 10, 2021 · 0 comments

Comments

@Gauthamjm007
Copy link

`We are getting the env values
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb0 pc=0x434d526]

goroutine 1 [running]:
github.com/jinzhu/gorm.(*DB).clone(0x0, 0x0)
/Users/go/src/github.com/jinzhu/gorm/main.go:856 +0x26
github.com/jinzhu/gorm.(*DB).Debug(...)
/Users/go/src/github.com/jinzhu/gorm/main.go:531
github.com/gouthamjm/backend/crud/api/controllers.(*Server).Initialize(0x487f090, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/go/src/github.com/gouthamjm/backend/crud/api/controllers/base.go:59 +0xc5
github.com/gouthamjm/backend/crud/api.Run()
/Users/go/src/github.com/gouthamjm/backend/crud/api/server.go:32 +0x265
main.main()
/Users/go/src/github.com/gouthamjm/backend/crud/main.go:6 +0x25
exit status 2
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant