Skip to content

Instantly share code, notes, and snippets.

@cer
Created July 10, 2020 15:51
Show Gist options
  • Save cer/94ae17908828090a5ad934c0f4dff8e5 to your computer and use it in GitHub Desktop.
Save cer/94ae17908828090a5ad934c0f4dff8e5 to your computer and use it in GitHub Desktop.
java.net.UnknownHostException: customerservice: Name or service not known
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[na:1.8.0_252]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Assembly trace from producer [reactor.core.publisher.MonoLift] :
reactor.core.publisher.Mono.create
reactor.netty.resources.PooledConnectionProvider$PooledConnectionAllocator.connectChannel(PooledConnectionProvider.java:219)
Error has been observed at the following site(s):
|_ Mono.create ⇢ at reactor.netty.resources.PooledConnectionProvider$PooledConnectionAllocator.connectChannel(PooledConnectionProvider.java:219)
|_ Mono.from ⇢ at reactor.netty.internal.shaded.reactor.pool.PoolBuilder.from(PoolBuilder.java:59)
|_ ⇢ at reactor.netty.internal.shaded.reactor.pool.DefaultPoolConfig.allocator(DefaultPoolConfig.java:100)
|_ ⇢ at reactor.netty.internal.shaded.reactor.pool.SimplePool.acquire(SimplePool.java:121)
|_ Mono.create ⇢ at reactor.netty.resources.PooledConnectionProvider.acquire(PooledConnectionProvider.java:128)
|_ ⇢ at reactor.netty.tcp.TcpResources.acquire(TcpResources.java:208)
|_ ⇢ at reactor.netty.tcp.TcpClientConnect.connect(TcpClientConnect.java:51)
|_ ⇢ at reactor.netty.tcp.TcpClientOperator.connect(TcpClientOperator.java:43)
|_ Mono.create ⇢ at reactor.netty.http.client.HttpClientConnect$MonoHttpConnect.subscribe(HttpClientConnect.java:285)
|_ Mono.retry ⇢ at reactor.netty.http.client.HttpClientConnect$MonoHttpConnect.subscribe(HttpClientConnect.java:322)
|_ ⇢ at reactor.netty.tcp.TcpClientOperator.connect(TcpClientOperator.java:43)
|_ ⇢ at reactor.netty.tcp.TcpClientOperator.connect(TcpClientOperator.java:43)
|_ ⇢ at reactor.netty.tcp.TcpClientOperator.connect(TcpClientOperator.java:43)
|_ ⇢ at reactor.netty.tcp.TcpClientOperator.connect(TcpClientOperator.java:43)
|_ ⇢ at reactor.netty.tcp.TcpClientOperator.connect(TcpClientOperator.java:43)
|_ ⇢ at reactor.netty.http.client.HttpClientFinalizer.connect(HttpClientFinalizer.java:68)
|_ Mono.flatMapMany ⇢ at reactor.netty.http.client.HttpClientFinalizer.responseConnection(HttpClientFinalizer.java:85)
|_ Flux.next ⇢ at org.springframework.http.client.reactive.ReactorClientHttpConnector.connect(ReactorClientHttpConnector.java:112)
|_ Mono.doOnRequest ⇢ at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.exchange(ExchangeFunctions.java:105)
|_ Mono.doOnCancel ⇢ at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.exchange(ExchangeFunctions.java:106)
|_ Mono.map ⇢ at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.exchange(ExchangeFunctions.java:107)
|_ ⇢ at org.springframework.cloud.sleuth.instrument.web.client.TraceExchangeFilterFunction.filter(TraceWebClientBeanPostProcessor.java:143)
|_ ⇢ at org.springframework.web.reactive.function.client.ExchangeFilterFunction.lambda$apply$2(ExchangeFilterFunction.java:68)
|_ checkpoint ⇢ Request to GET http://customerservice:8080/customers/1 [DefaultWebClient]
|_ Mono.switchIfEmpty ⇢ at org.springframework.web.reactive.function.client.DefaultWebClient$DefaultRequestBodyUriSpec.lambda$exchange$0(DefaultWebClient.java:340)
|_ Mono.defer ⇢ at org.springframework.web.reactive.function.client.DefaultWebClient$DefaultRequestBodyUriSpec.exchange(DefaultWebClient.java:338)
|_ Mono.flatMap ⇢ at io.eventuate.examples.tram.sagas.ordersandcustomers.apigateway.proxies.CustomerServiceProxy.findCustomerById(CustomerServiceProxy.java:36)
|_ Mono.timeout ⇢ at io.github.resilience4j.reactor.timelimiter.TimeLimiterOperator.withTimeout(TimeLimiterOperator.java:64)
|_ Mono.doOnNext ⇢ at io.github.resilience4j.reactor.timelimiter.TimeLimiterOperator.withTimeout(TimeLimiterOperator.java:65)
|_ Mono.doOnSuccess ⇢ at io.github.resilience4j.reactor.timelimiter.TimeLimiterOperator.withTimeout(TimeLimiterOperator.java:66)
|_ Mono.doOnError ⇢ at io.github.resilience4j.reactor.timelimiter.TimeLimiterOperator.withTimeout(TimeLimiterOperator.java:67)
|_ Mono.transformDeferred ⇢ at io.eventuate.examples.tram.sagas.ordersandcustomers.apigateway.proxies.CustomerServiceProxy.findCustomerById(CustomerServiceProxy.java:47)
|_ Mono.transformDeferred ⇢ at io.eventuate.examples.tram.sagas.ordersandcustomers.apigateway.proxies.CustomerServiceProxy.findCustomerById(CustomerServiceProxy.java:48)
|_ Mono.zip ⇢ at io.eventuate.examples.tram.sagas.ordersandcustomers.apigateway.customers.OrderHistoryHandlers.getOrderHistory(OrderHistoryHandlers.java:36)
|_ Mono.map ⇢ at io.eventuate.examples.tram.sagas.ordersandcustomers.apigateway.customers.OrderHistoryHandlers.getOrderHistory(OrderHistoryHandlers.java:37)
|_ Mono.flatMap ⇢ at io.eventuate.examples.tram.sagas.ordersandcustomers.apigateway.customers.OrderHistoryHandlers.getOrderHistory(OrderHistoryHandlers.java:42)
|_ Mono.map ⇢ at org.springframework.web.reactive.function.server.support.HandlerFunctionAdapter.handle(HandlerFunctionAdapter.java:62)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment