-
Notifications
You must be signed in to change notification settings - Fork 788
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
OpenFeign doesn't work with kotlin suspend method #661
Comments
When I make a successful call to make an http request, but it fails when converting the http call result json into an object. When I remove the
|
Hello, @XhstormR. We have never introduced kotlin support in Spring Cloud OpenFeign, so there might be many Kotlin constructs that will not work. Putting the issue into ice-box as currently we are not working on Kotlin support. |
It looks like OpenFeign recently merged in support for Kotlin suspend functions OpenFeign/feign#1706. When that PR is released and spring-cloud-openfeign can update, will suspend functions 'just work'? |
We'll review it. If it requires only minimal changes, we'll possibly implement support here also. However, if it's more involved, then Kotlin support is currently not a priority. However, we would review a PR if it's submitted. |
OpenFeign 12.0 was released with support for Kotlin coroutines. By looking at the test case |
Since the |
I have an API interface where the methods are kotlin suspend methods:
But when I run the program, the program throws an exception:
This
kotlin.coroutines.Continuation
parameter is generated by the kotlin compiler at compile time, so I can't modify this parameter, how can I tell FeignClient to ignore this Continuation parameter?The text was updated successfully, but these errors were encountered: