The issue is in the httpHostConnection, that states that there was a time out.
As described here https://stackoverflow.com/questions/43372676/connection-failed-timeout-for-testing-api-using-java-apache-http-client there are 3 options that couold cause this:
The URL expects headers like User-Agent. You can set request headers needed
You are in a corporate or restricted environment and need a proxy to connect to external URLs. Your browser might already be setup to use proxy server. In this case, you will need to pass proxy credentials to http client API.
All outgoing requests are blocked in your environment by firewall or something. In this case, you will need to ask your network admin to allow network connection.