-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Declarative client with suspended function fails on 404 #5301
Comments
Is this a micronaut-core issue? |
Any updates or plans to fix this? |
Not yet, but PRs are welcome of course |
I'd love to contribute however I have no idea where to start. Could you point me in a good starting direction? |
from the stack trace it looks like Line 379 in ae037fb
This appears to be invalid in Kotlin coroutines so the return type here: Line 327 in ae037fb
Would need to be checked for |
@graemerocher Completing kotlin coroutines with null should be totally valid. I think what is making this failing is this line here which explicitely throws the exception when the result is null. Do you have some context on why this behavior has been setup? |
good question, @dstepanov any idea? |
I guess I didn't realize that the coroutine can return a null. |
Yes I can do that 👍🏼 |
Task List
Steps to Reproduce
Expected Behaviour
the client returns null
Actual Behaviour
throws with
java.lang.IllegalStateException
Environment Information
Example Application
https://github.com/jaecktec/micronaut-issues/tree/declarative-suspend-client-null-issue/
The text was updated successfully, but these errors were encountered: