Update throws Exception to throws IOException due to change in http client lib