Reactor.core.exceptions$reactiveexception: java.net.Unknownhostexception
Anthony Nguyen
0
Reputation points
Hi guys,
We're having trouble with accessing the properties of our storage services. We're getting java.net.Unknownhostexception every time trying to reach the endpoints of services (this happened with fileShare, table, queue, and blob).
I did try an nslookup from the command line, the storage account endpoint seems to resolve just fine. The storage account we're having trouble with is the kind Standard General Purpose V2 (StorageV2) which does support 4 kinds of storage services but the exception was still thrown:
reactor.core.Exceptions$ReactiveException: java.net.UnknownHostException: {redacted}.table.core.windows.net
at reactor.core.Exceptions.propagate(Exceptions.java:396)
at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:97)
at reactor.core.publisher.Mono.block(Mono.java:1707)
at com.azure.data.tables.TableServiceClient.getProperties(TableServiceClient.java:401)
{redacted piece of stack trace}
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Suppressed: java.lang.Exception: #block terminated with an error
at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:99)
... 14 common frames omitted
Caused by: java.net.UnknownHostException: {redacted}.table.core.windows.net
at java.net.InetAddress$CachedAddresses.get(InetAddress.java:765)
at java.net.InetAddress.getAllByName0(InetAddress.java:1292)
at java.net.InetAddress.getAllByName(InetAddress.java:1145)
at java.net.InetAddress.getAllByName(InetAddress.java:1066)
at io.netty.util.internal.SocketUtils$9.run(SocketUtils.java:169)
at io.netty.util.internal.SocketUtils$9.run(SocketUtils.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at io.netty.util.internal.SocketUtils.allAddressesByName(SocketUtils.java:166)
at io.netty.resolver.DefaultNameResolver.doResolveAll(DefaultNameResolver.java:50)
at io.netty.resolver.SimpleNameResolver.resolveAll(SimpleNameResolver.java:79)
at io.netty.resolver.SimpleNameResolver.resolveAll(SimpleNameResolver.java:71)
at io.netty.resolver.InetSocketAddressResolver.doResolveAll(InetSocketAddressResolver.java:73)
at io.netty.resolver.InetSocketAddressResolver.doResolveAll(InetSocketAddressResolver.java:31)
at io.netty.resolver.AbstractAddressResolver.resolveAll(AbstractAddressResolver.java:158)
at reactor.netty.transport.TransportConnector.doResolveAndConnect(TransportConnector.java:304)
at reactor.netty.transport.TransportConnector.lambda$connect$6(TransportConnector.java:127)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:125)
at reactor.netty.transport.TransportConnector$MonoChannelPromise._subscribe(TransportConnector.java:600)
at reactor.netty.transport.TransportConnector$MonoChannelPromise.lambda$subscribe$0(TransportConnector.java:520)
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:403)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
... 1 common frames omitted
Suppressed: java.net.UnknownHostException: {redacted}.table.core.windows.net: Name does not resolve
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:868)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1303)
at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:816)
... 26 common frames omitted
Suppressed: java.net.UnknownHostException: {redacted}.table.core.windows.net
... 27 common frames omitted
Suppressed: java.net.UnknownHostException: {redacted}.table.core.windows.net
... 27 common frames omitted
Sdks we're using:
- azure-storage-blob: 12.19.1
- azure-storage-file-share: 12.15.1
- azure-storage-queue: 12.14.2
- azure-data-tables: 12.3.4
- azure-resourcemanager-storage: 2.25.0
Thank you!
Sign in to answer