I have simple code to send a get request to our webservice that returns a small json response:
System.HttpRequest request = new System.HttpRequest(); request.setMethod('GET'); request.setTimeout(120000); request.setEndpoint(url); System.HttpResponse response = new System.Http().send(request); System.debug(response.getBody());
Getting the CalloutException: Read timed out error each time. The Salesforce IPs have been whitelisted on our firewall, our site hosting the service has been added to list of 'Remote Site Settings' and I have maxed the timeout for the request - still getting the error.
I don't see the request that generates from Salesforce in our log files so I am thinking there is still a network issue at play. Is there another step we are missing to authorize access?
EDIT: Issue has been resolved, we only had https open for requests so opened http and all is well.