eclipse-vertx / vertx-http-proxy

vertx http proxy
Eclipse Public License 2.0
50 stars 36 forks source link

Confusing message when target proxy is unreachable (vertx-http-proxy embedded in quarkus) #75

Open patrice-conil opened 1 month ago

patrice-conil commented 1 month ago

Version

Which version(s) did you encounter this bug ? quarkus 3.11.0 (vertx-http-proxy 4.5.7)

Context

I encountered an exception "java.lang.IllegalStateException: Request has already been read" when target proxy is unreachable.

Do you have a reproducer?

Reproducer is : here

Steps to reproduce

  1. Launch application ./gradlew quarkusDev
  2. Call http://localhost:8080/anyUri
  3. See "Request has already been read"
  4. Start a webserver on port 8888
  5. Call http://localhost:8080/anyUri (twice because second call should trigger a 403)
  6. Everything goes fine

Extra

JVM temurin-17 MacOS Sonoma 14.4.1 (23E224)

yameizi001 commented 2 weeks ago

@tsegismont I've submitted a pr that might fix this , see #84 . Please see if it works,thanks.