function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
john3john3 

System.CalloutException: IO Exception: Read timed out

hi can somebody help me how to solve this issue

mikefitzmikefitz

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