akka/akka-core

Dns resolution throws UnknownHostException with only the hostname as message

開放

#23,543 建立於 2017年8月17日

 (1 則留言) (0 個反應) (0 位負責人)Scala (3,547 個分叉)batch import
1 - triagedhelp wantedt:coret:dnst:io

倉庫指標

星標
 (13,277 顆星)
PR 合併指標
 (平均合併 8天 19小時) (30 天內合併 10 個 PR)

描述

It should provide more info for the case where the exception name is not printed along with the message as reported in https://github.com/akka/akka-http/issues/1364. Right now error messages from Akka IO / Akka Stream read like this:

akka.stream.StreamTcpException: Tcp command [Connect(potato:80,None,List(),Some(10 seconds),true)] failed because of potato

https://github.com/akka/akka/blob/c2ff4f74fcc6de90cafdc1a8b21d2fe914c8d917/akka-actor/src/main/scala/akka/io/Dns.scala#L31-L35

貢獻者指南