Upgrading to 2.4.1 version seems to missing some configuration for making rest calls using webclient, this below works with 2.3.7 version but no longer works with new version. It errors with unknown host io.netty.resolver.dns.DnsResolveContext$SearchDomainUnknownHostException: Search domain query failed
WebClient.builder().baseUrl("https://domain.com/")
.build().get()
.uri("item/test")
.retrieve()
Comment From: bclozel
This doesn't look like a Spring Boot bug.
Please try the workaround listed here or create a new issue on the reactor-netty project with more information (complete stacktrace and repro project) if the workaround doesn't work.
Thanks!
Comment From: rschlick
It's definitely a bug on Netty framework since Spring Boot 2.4.x. Hard to bring a reproductible case.