-
Notifications
You must be signed in to change notification settings - Fork 14
[HTTP-Client] 204 deserialization error #426
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
Milestone
Comments
How does it become a 204? Does the status code get set by the response or is null returned from a method or something else? What does the controller code look like for this case? |
Oh, this is for HttpClient .... getting a response status code 204 ... oh. |
Example stack trace:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[Essentially Copied from discord]
Suppose an api call to a server results in a 204.
.GET().as(MyBean.class)
tries to deserialise the body (of which is empty), resulting in an error during deserializationWhat I would've expected is:
.body()
is called. That way it's down to the implementation to know when it should and shouldn't expect a body. So for example, in a 204, I shouldn't call.body()
but in other scenarios I should probably expect the body to be present.The text was updated successfully, but these errors were encountered: