I'm writing an application in Scala that is using the java HttpClient to try to connect to a url, however I keep on getting the error ERROR Catching java.net.UnknownHostException: my.address.com
. The tests are being run using sbt in the terminal on Ubuntu, and when I ping the host from the same location it is able to resolve the ip.
Does anyone have a suggestion of why pinging the host works but my application can't find it?