confusedkernel / earworms

Discord Music Bot based on Discord4J.
2 stars 0 forks source link

Failed to resolve 'discord.com' after 2 queries #1

Closed confusedkernel closed 2 years ago

confusedkernel commented 2 years ago

[main] INFO discord4j.core.DiscordClientBuilder - Discord4J 3.2.1 (https://discord4j.com) Exception in thread "main" reactor.core.Exceptions$ReactiveException: java.net.UnknownHostException: failed to resolve 'discord.com' after 2 queries at reactor.core.Exceptions.propagate(Exceptions.java:392) at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:97) at reactor.core.publisher.Mono.block(Mono.java:1706) at com.github.nottyl.earwormsbot.Main.main(Main.java:28) Suppressed: java.lang.Exception: #block terminated with an error at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:99) ... 2 more Caused by: java.net.UnknownHostException: failed to resolve 'discord.com' after 2 queries at io.netty.resolver.dns.DnsResolveContext.finishResolve(DnsResolveContext.java:1046) Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: Error has been observed at the following site(s): | checkpoint ⇢ Request to GET /gateway/bot [RequestStream] | checkpoint ⇢ Request to GET /gateway/bot [DefaultRouter] Stack trace: at io.netty.resolver.dns.DnsResolveContext.finishResolve(DnsResolveContext.java:1046) at io.netty.resolver.dns.DnsResolveContext.tryToFinishResolve(DnsResolveContext.java:999) at io.netty.resolver.dns.DnsResolveContext.query(DnsResolveContext.java:417) at io.netty.resolver.dns.DnsResolveContext.access$600(DnsResolveContext.java:65) at io.netty.resolver.dns.DnsResolveContext$2.operationComplete(DnsResolveContext.java:466) at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578) at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571) at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550) at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491) at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616) at io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609) at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117) at io.netty.resolver.dns.DnsQueryContext.tryFailure(DnsQueryContext.java:224) at io.netty.resolver.dns.DnsQueryContext$4.run(DnsQueryContext.java:176) at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98) at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:170) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: io.netty.resolver.dns.DnsNameResolverTimeoutException: [/8.8.8.8:53] query via UDP timed out after 5000 milliseconds (no stack trace available)

Process finished with exit code 1

confusedkernel commented 2 years ago

Solved. It's literally just the DNS issue lol.