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

ERR : Key "github.com/gin-contrib/sessions" does not exist #190

Open
zhuangyuantao opened this issue Sep 5, 2022 · 1 comment
Open

ERR : Key "github.com/gin-contrib/sessions" does not exist #190

zhuangyuantao opened this issue Sep 5, 2022 · 1 comment

Comments

@zhuangyuantao
Copy link

ERR
Key "github.com/gin-contrib/sessions" does not exist
E:/work/project/pkg/mod/github.com/gin-gonic/[email protected]/context.go:272 (0xdf5798)
(*Context).MustGet: panic("Key "" + key + "" does not exist")
E:/work/project/pkg/mod/github.com/gin-contrib/[email protected]/sessions.go:146 (0xdf5718)
Default: return c.MustGet(DefaultKey).(Session)
E:/work/learn/gin_study/controller/sessionController.go:11 (0xdf5c8f)
SetSession: session := sessions.Default(c)
E:/work/learn/gin_study/controller/loginController.go:32 (0xdf5aa4)
LoginController.Login: SetSession(c)
E:/work/project/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0xdeb761)
(*Context).Next: c.handlersc.index
E:/work/project/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:101 (0xdeb74c)
CustomRecoveryWithWriter.func1: c.Next()
E:/work/project/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0xdea846)
(*Context).Next: c.handlersc.index
E:/work/project/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:240 (0xdea829)
LoggerWithConfig.func1: c.Next()
C:/Program Files/Go/src/net/http/server.go:1966 (0xc53d36)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
C:/Program Files/Go/src/runtime/asm_amd64.s:1571 (0xaa3aa0)
goexit: BYTE $0x90 // NOP

@boahost
Copy link

boahost commented Dec 28, 2023

I have this problem too

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

2 participants