-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cannot inject io.vertx.mutiny.ext.web.RoutingContext in @Route annotated method #17412
Comments
/cc @cescoffier, @jponge |
//CC @mkouba |
The problem seems to be the injection of the routing context, while you are returning a |
@symphony-youri Hm, the docs is wrong we don't support the |
@cescoffier I think that we should just remove the mutiny version of RC from the docs. WDYT? |
Although being documented, RoutingContext from Mutiny is not supported in @route annotated method. Update documentation accordingly. Fix quarkusio#17412
(waouh super fast feedback) Indeed it was working with the Http Request (mutiny or vertx ones) and with the vertx RoutingContext too. Maybe the documentation should be updated then to avoid the confusion? |
Describe the bug
In the documentation (https://quarkus.io/guides/reactive-routes#reactive-route-methods), it is written that a
RoutingContext
(Mutiny Smallrye one) can be injected in a @route annotated method. However trying to do that raises an exception.Expected behavior
io.vertx.mutiny.ext.web.RoutingContext
can be injected in a @route method.Actual behavior
Exception is raised at startup with the message:
@route(path = "/*", produces = "application/json")
public Uni route(io.vertx.ext.web.RoutingContext rc) {
}
The text was updated successfully, but these errors were encountered: