SocketTimeOut Exception in java whiile calling RestTemplate GetforObject
问题 we experience the following error pattern: I/O error on GET request for "https://samplepath": Timeout while fetching URL: https://samplepath; nested exception is java.net.SocketTimeoutException: Timeout while fetching URL: samplepath Code: RestTemplate restTemplate = new RestTemplate(); try { URI uri = new URI("https://samplepath); sessionInfo = restTemplate.getForObject(uri, SessionResponse.class); } catch (Exception e) { System.out.println(e.getMessage()); } This code is written inside the