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
prashant1985prashant1985 

system.calloutexception read timed out in salesforce

I am calling API and its return this below error message sometimes.

 

system.calloutexception read timed out

 

so how to resolved this issue

please suggest

 

 

Thanks

Prashant

DaveHDaveH

I experience this issue sometimes with one of my batch jobs that involves making a callout to update a record in another system. Unfortunately I only see this when the other system is unable to process my request quickly. You can try increasing the timeout on the HTTPRequest object by using the setTimeout() method.