Reactor.core.exceptions$reactiveexception: java.net.Unknownhostexception

Anthony Nguyen 0 Reputation points
2023-11-24T14:34:15.5633333+00:00

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!

Azure Table Storage
Azure Table Storage
An Azure service that stores structured NoSQL data in the cloud.
171 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,220 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,919 questions
Azure Queue Storage
Azure Queue Storage
An Azure service that provides messaging queues in the cloud.
107 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.