You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unsure about this. I don't think the API TypedArgumentBinder was thought for users to do network requests inside them. I think that logic would be best in a controller method.
at least there should be some sensible warning. it took quite a long time to figure out in the tree of beans what is causing the issues. ideally it should suggest the workaround using Provider<BeanUsingHttpClient>
Expected Behavior
Developer should be able to depend on any bean that is either a HTTP client or injects HTTP client transitively when creating
TypedArgumentBinder
Actual Behaviour
When
TypedArgumentBinder
even transitively depends on any HTTP client then the application won't start at all.Steps To Reproduce
Use the repo below for reproducer with branch cannot-depend-on-client-from-binder and run
FactsControllerTest
CatFact
TypedRequestArgumentBinder
that is responsible for injecting the POJOEnvironment Information
JDK 21 Zulu
Example Application
https://github.com/musketyr/micronaut-blocking-calls-in-binders-issue/tree/cannot-depend-on-client-from-binder
Version
4.4.0
The text was updated successfully, but these errors were encountered: