-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Issue #1606 Customize the length of the body in FeignException builder #1767
Conversation
return errorStatus(methodKey, response, null, null); | ||
} | ||
public static FeignException errorStatus(String methodKey, Response response, | ||
Integer maxBodyBytesLength, Integer maxBodyCharsLength) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is never invoked by feign.
So what would be the point of the change.
I'm sure I'm missing something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coungard what I'm not understanding is how.
That new method is never invoked by feign... how is that going to change anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@velo if I'm right u mean Default implementation, where errorResponse() used:
, but i need custom decode() override implementation like this:
, where i can define body constraints - it's will be very helpfull.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@velo the result can be clearly seen on the test -> FeignExceptionTest::lengthOfBodyExceptionTest (143)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, there is a test that invokes the new code. Where is the code the invokes this?!
As far I can tell, this change change behavior of a test, but no changes on feign behavior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@velo Sorry, but isn't that enough? The code is called by Feign by default (null, null), but for us it will be overridden parameters:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ow, I see now, my bad
#1767) Co-authored-by: Witalij Berdinskich <[email protected]> Co-authored-by: Marvin Froeder <[email protected]>
#1767) Co-authored-by: Witalij Berdinskich <[email protected]> Co-authored-by: Marvin Froeder <[email protected]>
No description provided.