+ Start a Discussion

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






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.