-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
smallrye-restclient does not throw correct error #2590
Comments
@barata0 any chance you could prepare a real reproducer (a very simple Maven project would be ideal)? |
It might be related to: smallrye/smallrye-rest-client#11 . |
@gsmet I believe it's the same problem indeed. Here it is github project |
Unfortunately, given what @kenfinnigan said in the SmallRye REST client issue, I don't know when this will be fixed. @kenfinnigan can you check that the issue reported to SmallRye REST client has been integrated in the RESTEasy roadmap. It seems to be a pretty annoying issue. Thanks! |
@sberyozkin Can you link which RESTEasy issue you were referring to in smallrye/smallrye-rest-client#11 and then we can determine whether that would be part of a release of RESTEasy that would include the REST Client? |
Hi, I just tested on quarkus 23.1 and it seems to be working fine. |
@barata0 thanks for the feedback! |
Hi,
Describe the bug
When RestClient gets a code > 400 it is raising an strange error making impossible to identify if its denied, server error, forbidden, etc...
Expected behavior
Should raise the error: javax.ws.rs.WebApplicationException or an subclass of it e.g (NotAuthorizedException)
Actual behavior
The actual error is: java.lang.RuntimeException: method call not supported
To Reproduce
Just create a rest client calling a denied service
Make sure app/PATH_TO_A_DENIED_SERVICE returns status 401
Configuration
app.properties:
my.AppService/mp-rest/url=http://localhost:8080
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
Output of
uname -a
orver
: Linux precision 4.15.0-50-generic Introduce OpenShift verification #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64 GNU/LinuxOutput of
java -version
openjdk version "11.0.2" 2019-01-15:GraalVM version (if different from Java): Not applyed
Quarkus version: 0.15.0
Additional context
Running with the command mvn clean compile quarkus:dev
Bellow is the full stacktrace:
The text was updated successfully, but these errors were encountered: