Without further details about the actual error (the exception does not really contains any details what failed), it is really hard to say what the issue could be. Please consider handling the exception and logging some more specific details about that exception.
This is not a very useful post without more context. Can you provide any code example and explain what you are trying to do and any other information from the exception?
Do you have any outgoing firewall on your server? It appears it maybe blocking port 443 to the API server as it is timing out.