Skip to content
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

/webclient/standalone example builds OK but running the separate client as in the README.md fails #37

Open
tjquinno opened this issue Mar 29, 2024 · 1 comment · Fixed by #36
Assignees
Labels
bug Something isn't working

Comments

@tjquinno
Copy link
Member

Environment Details

  • Helidon Version: 3.x
  • Helidon SE or Helidon MP
  • JDK version:
  • OS:
  • Docker version (if applicable):

Problem Description

The /webclient/standalone app builds and tests successfully, but it includes both a server and a client. When you start the server and then run the client per the instructions in the README.md file the client reports a failure in the redirection step.

Steps to reproduce

In the helidon-examples repo clone:

cd examples/webclient/standalone
mvn clean package
java -jar target/helidon-examples-webclient-standalone.jar

Note the port number displayed (XXX).
In another terminal window:

java -cp "target/classes:target/libs/*" io.helidon.examples.webclient.standalone.ClientMain XXX

You get output with a few successes and then a failure at the redirection step:

Exception in thread "main" java.util.concurrent.CompletionException: java.lang.IllegalStateException: Follow redirection failed!
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
	at io.helidon.common.reactive.Awaitable.await(Awaitable.java:54)
	at io.helidon.examples.webclient.standalone.ClientMain.main(ClientMain.java:103)
Caused by: java.lang.IllegalStateException: Follow redirection failed!
	at io.helidon.examples.webclient.standalone.ClientMain.lambda$followRedirects$7(ClientMain.java:132)
@senivam
Copy link
Member

senivam commented Apr 10, 2024

fixed by 36

@romain-grecourt romain-grecourt transferred this issue from helidon-io/helidon Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants