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

ctx.Next() error #2366

Open
qiafan666 opened this issue Feb 22, 2024 · 0 comments
Open

ctx.Next() error #2366

qiafan666 opened this issue Feb 22, 2024 · 0 comments
Assignees

Comments

@qiafan666
Copy link

Describe the bug
The same code will cause an error if the iris version number is replaced.if iris version is 12.2
1 is normal,but upgrade to 12.2.5 and above is abnormal,error mssage。The following is the error report。
The problem lies in ctx.Next()

project address: https://github.com/qiafan666/framework-go
To Reproduce
/hero.makeHandler.func2')
Trace: runtime error: invalid memory address or nil pointer dereference
D:/golang/src/runtime/panic.go:920
D:/golang/src/runtime/panic.go:261
D:/golang/src/runtime/signal_windows.go:364
D:/golang/go_WorkSpace/src/framework-go/controller/base_controller.go:29
D:/golang/src/reflect/value.go:596
D:/golang/src/reflect/value.go:380
D:/golang/go_WorkSpace/pkg/mod/github.com/kataras/iris/[email protected]/hero/handler.go:180
D:/golang/go_WorkSpace/pkg/mod/github.com/kataras/iris/[email protected]/context/context.go:683
D:/golang/go_WorkSpace/src/framework-go/middleware/portal_mid.go:62
D:/golang/go_WorkSpace/pkg/mod/github.com/kataras/iris/[email protected]/context/context.go:683
D:/golang/go_WorkSpace/pkg/mod/github.com/iris-contrib/middleware/[email protected]/cors.go:194
D:/golang/go_WorkSpace/src/framework-go/middleware/common.go:52
D:/golang/go_WorkSpace/pkg/mod/github.com/kataras/iris/[email protected]/context/context.go:683
D:/golang/go_WorkSpace/pkg/mod/github.com/qiafan666/[email protected]/middleware/defualt.go:43
D:/golang/go_WorkSpace/pkg/mod/github.com/kataras/iris/[email protected]/context/context.go:531
D:/golang/go_WorkSpace/pkg/mod/github.com/kataras/iris/[email protected]/core/router/handler.go:498
D:/golang/go_WorkSpace/pkg/mod/github.com/kataras/iris/[email protected]/core/router/router.go:101
D:/golang/go_WorkSpace/pkg/mod/github.com/kataras/iris/[email protected]/core/router/router.go:341
D:/golang/src/net/http/server.go:2938
D:/golang/src/net/http/server.go:2009
D:/golang/src/runtime/asm_amd64.s:1650

iris.Version

  • e.g. v12.2.1 is normal,but v12.2.5 and more is abnormal
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