+ Start a Discussion

System.CalloutException: IO Exception: Read timed out

hi can somebody help me how to solve this issue


It will timeout if the listener doesn't respond in time.

Maybe set a timeout on your callout and add error handling with a try catch.



More info: http://wiki.developerforce.com/index.php/Apex_Web_Services_and_Callouts


HttpRequest req = new HttpRequest();
req.setTimeout(2000); // timeout in milliseconds