Closed Freetoplay951 closed 5 months ago
[02:52:02] Unhandled exception in router [02:52:03] Unhandled exception in router [02:52:03] Unhandled exception in router [02:52:08] Unhandled exception in router
I use:
Vertx vertex = Vertx.vertx(); Router router = Router.router(vertex); router.route().handler(SessionHandler.create(LocalSessionStore.create(vertex))); router.routeWithRegex("/files/.*").handler(this::handleFileRequests); router.route().handler(BodyHandler.create()).handler(this::handleRequests); router.route().failureHandler(failureContext -> { failureContext.response().setStatusCode(404).end(); }); HttpServer innerServer = vertex .createHttpServer() .requestHandler(router) .exceptionHandler(error -> { }) .listen(port, handler -> { });
Duplicates https://github.com/vert-x3/vertx-web/issues/2625
I use: