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

error in DataResponse should not trigger TemplateEngine reponse #37

Open
danielpoe opened this issue May 17, 2019 · 0 comments
Open

error in DataResponse should not trigger TemplateEngine reponse #37

danielpoe opened this issue May 17, 2019 · 0 comments
Milestone

Comments

@danielpoe
Copy link
Member

danielpoe commented May 17, 2019

If Data Response fails then the 500 error template is shown.

Expected: A json error format (?)

Example stack

2019-05-17T14:13:07.643+0200 ERROR web/result.go:386 json: unsupported type: ....
flamingo/flamingo/core/zap/logger.go:77
flamingo.me/flamingo/v3/framework/web.(*Responder).ServerError
flamingo/flamingo/framework/web/result.go:386
flamingo.me/flamingo/v3/framework/controller.(*Error).Error
flamingo/flamingo/framework/controller/error.go:28
flamingo.me/flamingo/v3/framework/web.(*handler).ServeHTTP
flamingo/flamingo/framework/web/handler.go:217
flamingo.me/flamingo/v3/framework/prefixrouter.(*FrontRouter).ServeHTTP
flamingo/flamingo/framework/prefixrouter/front_router.go:136

@bastianccm bastianccm added this to the v3.3.0 milestone Jul 15, 2020
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