feign icon indicating copy to clipboard operation
feign copied to clipboard

Is it possible to customize the length of the body in FeignException?

Open jiahui-qin opened this issue 3 years ago • 2 comments

feign in master branch

I found that FeignException enforces the length of body not to exceed 400, use below two param:

    private static final int MAX_BODY_BYTES_LENGTH = 400;
    private static final int MAX_BODY_CHARS_LENGTH = 200;

Is there a way I can customize the length of these two variables to get more error messages?

Thank you!

jiahui-qin avatar Apr 07 '22 06:04 jiahui-qin

I need this too. Any way to bump up the priority on this?

prashanth057 avatar Aug 01 '22 08:08 prashanth057

Hi @prashanth057 , feign is mainly run by volunteers. Either you need to get a volunteer interested to do it for you, or you file a PR for this and I will happily review it.

velo avatar Aug 01 '22 08:08 velo

This can be closed as the proposal was merged right?

ddeath avatar Jul 04 '23 11:07 ddeath