diff --git a/core/src/main/java/io/github/project/openubl/xsender/camel/routes/SunatRouteBuilder.java b/core/src/main/java/io/github/project/openubl/xsender/camel/routes/SunatRouteBuilder.java index 084e141e..ec457789 100644 --- a/core/src/main/java/io/github/project/openubl/xsender/camel/routes/SunatRouteBuilder.java +++ b/core/src/main/java/io/github/project/openubl/xsender/camel/routes/SunatRouteBuilder.java @@ -65,12 +65,12 @@ public void configure() { // SOAP Exception .onException(SoapFault.class) - .handled(true) + .continued(true) .process(new SoapSunatErrorResponseProcessor()) .end() // REST exception .onException(HttpOperationFailedException.class) - .handled(exchange -> { + .continued(exchange -> { HttpOperationFailedException httpException = exchange.getProperty(Exchange.EXCEPTION_CAUGHT, HttpOperationFailedException.class); String contentType = httpException.getResponseHeaders().getOrDefault("Content-Type", "");