akka/akka-core

Dns resolution throws UnknownHostException with only the hostname as message

Aperta

#23.543 aperta il 17 ago 2017

 (1 commento) (0 reazioni) (0 assegnatari)Scala (3547 fork)batch import
1 - triagedhelp wantedt:coret:dnst:io

Metriche repository

Star
 (13.277 stelle)
Metriche merge PR
 (Merge medio 8g 19h) (10 PR mergiate in 30 g)

Descrizione

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

Guida contributor