-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
RESTEASY002160 warning when starting an application with @RegisterRestClient #17627
Comments
I will take a look |
@radcortez it seems like I wonder if we should just skip the registration in the latter case when the MP Client capability is present... |
Is registration automatic? Don't you need a |
It gets registered with RESTEasy because it handles both the server and client providers in the same way. |
Feel free to remove one of the registrations. The code I added is mostly a copy from RESTEasy and it was the only way to pass in our own custom CDI injector. I guess that I should have also submitted a PR to make that more extendable on the RESTEasy to remove the unnecessary Quarkus code. In that case, I believe we probably need to filter out on the Processor side. |
Prevent double registration of MpPublisherMessageBodyReader in rest client
…lient Fixes: quarkusio#17627 (cherry picked from commit caf5236)
Describe the bug
Developing an application with a
@RegisterRestClient
prints out the following warning:Expected behavior
No warning.
Actual behavior
Warning printed out.
To Reproduce
curl http://localhost:8080/country/name/greece
You will see the warning.
Configuration
as documented in the guide.
Quarkus version or git rev
2.0.0.CR2
The text was updated successfully, but these errors were encountered: