vertx-web icon indicating copy to clipboard operation
vertx-web copied to clipboard

Error in BodyHandler.create(false) after update to 4.3.1

Open asurovenko-zeta opened this issue 3 years ago • 2 comments

Bug

After upgrade to 4.3.1 version I have the issue in the following lines:

      .route(path)
      .method(HttpMethod.POST)
      .handler(BodyHandler.create(false))
      .handler(endStep);

I have received the following message: Cannot add [SECURITY_POLICY] handler to route with [BODY] handler at index 0

Version

4.3.1

asurovenko-zeta avatar Jun 04 '22 11:06 asurovenko-zeta

I have swapped CORS and BODY handlers and that issue was gone. But I have new one: Here: server.requestHandler(router).listen(port).onFailure(t -> { I received: java.lang.ClassNotFoundException: io.netty.handler.codec.compression.CompressionOptions

asurovenko-zeta avatar Jun 05 '22 11:06 asurovenko-zeta

ClassNotFoundException is usually a sign that the project is mixing the wrong versions of dependencies.

pmlopes avatar Jun 17 '22 09:06 pmlopes