go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

logx module print jwt unauthorized error

Open jhaifei opened this issue 2 years ago • 3 comments

hi!I have a upload service and I set the jwt auth,so when I post without authorization or with error authorization, it is unauthorized, but the logx print the error with request content,you see the request conent contains the files unicode,logx has a long time to print the error,the request client is timeout.

f91e62a48888078f4eea756227779d2

jhaifei avatar Nov 29 '22 09:11 jhaifei

What's your RestConf.Verbose in config? Or can you give a demo?

re-dylan avatar Nov 30 '22 15:11 re-dylan

What's your RestConf.Verbose in config? Or can you give a demo?

I use the default config.I think it is maybe because the auth module(authhandler.go) set "true" to collect the request body detail. 55f26db089eff00b1373b859e39621f

jhaifei avatar Dec 01 '22 06:12 jhaifei

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Dec 02 '23 01:12 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Mar 05 '24 01:03 github-actions[bot]