How can rest-client reactive follow redirects? #24989
Unanswered
manofthepeace
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
The property you mention is correct. Can you create a small reproducer for your problem? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am probably doing it wrong, but I am unable to follow redirects using the rest-client reactive. I scavenged the issue tracker, but just saw that it should be working since quarkus 2.0.
I have set the following in my config;
quarkus.rest-client.rest-api.follow-redirects=true
I have a mock server returning a 301 with a
Location:
header.Each time I call it I get an exception;
org.jboss.resteasy.reactive.ClientWebApplicationException: Received: 'Server response is: 301' when invoking: Rest Client method: 'org.acme.rest-api#test'
I tried having my own ResponseExceptionMapper handling higher than 400, same thing it trickles down to the same error, I tried handling the 301, but if I return an exception obviously it fails, if I return null, then it goes back to the original exception.
So my questions would be, how does the redirect work, if 3XX (301 in my test) is considered a ClientWebApplicationException
Beta Was this translation helpful? Give feedback.
All reactions