How to handle WebClientRequestException?

229 views Asked by At

How do I handle Spring Exception org.springframework.web.reactive.function.client.WebClientRequestException: Connection refused: /192.168.1.2:8080; nested exception is io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.1.2:8080 at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.lambda$wrapException$9(ExchangeFunctions.java:141) ~[spring-webflux-5.3.18.jar:5.3.18] Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: Error has been observed at the following site(s): *__checkpoint ⇢ Request to GET health [DefaultWebClient]

Tried using Exception handler and controller advice but not able to

0

There are 0 answers