eclipse-vertx / vert.x

Vert.x is a tool-kit for building reactive applications on the JVM
http://vertx.io
Other
14.26k stars 2.07k forks source link

route BodyHandler before ProxyHandler, response [ERROR] [2024-04-17 18:57:27] ?.?(?) | Connection was closed #5188

Closed cloudAndMonkey closed 4 months ago

cloudAndMonkey commented 5 months ago

Questions

HttpClientOptions clientOptions = new HttpClientOptions(); HttpClient proxyClient = VERTX.createHttpClient(clientOptions); HttpProxy proxy = HttpProxy.reverseProxy(proxyClient); proxy.originSelector(request -> Future.succeededFuture(resolveOriginAddress(request)));

mainHttpRouter.route().handler(BodyHandler.create()).handler(ProxyHandler.create(proxy));

image

postman loading long time, console return error [ERROR] [2024-04-17 18:57:27] ?.?(?) | Connection was closed

Version

4.5.7

tsegismont commented 4 months ago

Please try again without the body handler added to the route.

tsegismont commented 4 months ago

Reopen with detailed steps to reproduce if the tip above does not solve the problem