iris icon indicating copy to clipboard operation
iris copied to clipboard

[BUG]

Open langzishen opened this issue 2 years ago • 3 comments

Describe the bug if base Controller have a type of struct or []struct{} ,it have errs like this : image

image

code : image

This issue only occurs in POST requests, there are no issues with Get

I don't know why?

others all code can see https://github.com/langzishen/iris_demo

To Reproduce Steps to reproduce the behavior:

  1. [...]

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. ubuntu, windows]

iris.Version

  • e.g. v12.2.0 or master

Please make sure the bug is reproducible over the master branch:

$ cd PROJECT
$ go get -u github.com/kataras/iris/v12@master
$ go run .

Additional context Add any other context about the problem here.

langzishen avatar Apr 10 '23 06:04 langzishen

Hello @langzishen,

I see page not found for https://github.com/langzishen/iris_demo and I can't help you without full code example :/

kataras avatar Apr 25 '23 19:04 kataras

I have re uploaded the project code

------------------ 原始邮件 ------------------ 发件人: "kataras/iris" @.>; 发送时间: 2023年4月26日(星期三) 凌晨3:07 @.>; @.@.>; 主题: Re: [kataras/iris] [BUG] (Issue #2119)

Hello @langzishen,

I see page not found for https://github.com/langzishen/iris_demo and I can't help you without full code example :/

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

langzishen avatar Apr 26 '23 02:04 langzishen

image

the bug trigger by body payload auto binding, but Form decoder github.com/iris-contrib/schema disallow unknown fields.

zxfishhack avatar Oct 11 '23 15:10 zxfishhack