If a REST client call fails, the status code is forwarded to the client #31326
Labels
area/rest-client
kind/bug
Something isn't working
triage/out-of-date
This issue/PR is no longer valid or relevant
Describe the bug
Hi,
if a REST calls fails while serving a request, the application forwards the status code to the client (and nothing is logged on the server). Since the underlying error is caused by an unhandled exception on the server, I was expecting a 500.
It looks like the same issue was addressed in this PR, I'm wondering if there was a regression.
Thanks,
lorenzo
Expected behavior
The server returns a 500
Actual behavior
The server returns the status code of the response that caused the REST call to fail.
How to Reproduce?
GreetingResourceTest#helloEndpointReturnsA500WhenTheRestClientCallFails
test in https://github.com/lorenzobenvenuti/rest-client-exception-bugOutput of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.16.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: