[BUG] Container. GetErrorHandler (ct). HandleError (ct, err) in mvc was called twice consecutively
- Dominant language
- Go
- Stars
- 25.6k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
1. Container. GetErrorHandler (ct). HandleError (ct, err) in mvc was called twice consecutively
2. When non-pointer parameters are defined in the controller structure, many unexpected errors may occur. For example, POST and DELETE requests may result in EOF, which is similar to the first bug.
**To Reproduce**
Steps to reproduce the behavior:
1. type SomeController struct {
Ctx iris.Context
S service.AkService
E *errorc.Err
}
ak := adminApi.Party("/ak")
akMvc := mvc.New(ak)
akMvc.Register(service.AK, errorc.NewErrBuild("AKControllers"))
akMvc.Handle(new(admin.AK))


twice Errorhandle

second handle error

**Desktop (please complete the following information):**
- OS: MacOS
**iris.Version**
- e.g. v12.2.11
**Additional context**
Add any other context about the problem here.
Contributor guide
Assessment
This issue has not been assessed yet.