-
Notifications
You must be signed in to change notification settings - Fork 41.2k
400 on an endpoint operation using a @Selector #11274
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
Comments
Are you sure you're running with m7? Arg0 means the parameter name wasn't found and that should lead to an exception. You need to compile with -parameters. |
Yes I'm running M7, can't see any exception. What do you mean to compile with -parameters ? |
Can you please share a sample that reproduces the problem? |
Here it is : https://github.com/sebastienminne/actuator-selector-issue route /mycache is fine |
The endpoint infrastructure is using parameter names to infer the selector name. Your project works if I run it with |
I'm trying to get a custom endpoint working on M7 release, here is the code
I can see routes in the logs :
INFO 69597 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/mycache]
INFO 69597 --- [ main] .b.a.e.w.r.WebFluxEndpointHandlerMapping : Mapped "{[/mycache/{arg0}]
I get a response form /mycache but having a 400 bad request on /mycache/{arg0}
Could that be an issue on that version ?
The text was updated successfully, but these errors were encountered: