Closed PedroAmLemos closed 2 months ago
It seems like the controller problem. The parameter of jsonBody don't have @RequestBody annatation.
@pxpy You are right! I guess the service I'm making a request to, has the same fault on their controllers. Thanks!
Describe the bug Using
<spring-cloud.version>2023.0.3</spring-cloud.version>
When I make a OpenFeign client that does not have a body, the 401 response contains a not null body but if I add a body parameter the returned Response.Body comes empty.
Sample
this produces
but after removing the jasonBody attribute, I get:
This is the controller I used to test it: