-
Notifications
You must be signed in to change notification settings - Fork 95
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
Unexpected null body when deserializing empty optional serialized by conjure-undertow #1288
Comments
In this case, I wonder if we should use |
This endpoint serves both old and new summaries. The old summaries could return raw types like Changing the endpoint to return |
an empty optional is surely within the domain of |
FYI we had to go back to conjure-jersey over this as it proved to be a bigger break than we thought |
Can I double check what the signature of your retrofit client was? I remember some tricky inconsistencies in null coercion a while ago. Was it a |
I think the issue was conjure-undertow serializing json |
Honestly the whole thing feels super ambiguous because you can happily define Foo as an alias of optional, so then in a nice typed world the client could always know that 204 should map to |
Isn't it always up to the code calling a conjure client to know what the exact type of an |
What happened?
com.palantir.logsafe.exceptions.SafeNullPointerException: Unexpected null body
is thrown when calling a conjure-undertow server endpoint via conjure-retrofit.Repro steps:
Optional.empty()
What did you want to happen?
The conjure-retrofit client should understand the conjure-undertow server when an
Optional.empty()
is serialized and deserialized.The text was updated successfully, but these errors were encountered: