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
Ranu Jain SFDCRanu Jain SFDC 

Http callout : read time out

Hi All, I am calling a middleware system form apex, before calling the webservice Ist I set connection with the system. In this way there are 3 http callout in one apex transation. In my 1st callout which returns me PingToken, m getting callout read time out error. I got to know that I can increase the time out Limit but it can be max 120 sec in whole tranation. default is 10 sec, How I should decide to increase time limit of my first http request in my apex transaction?

Santosh Reddy9989Santosh Reddy9989
Hi Ranu,
use  setTimeout() function in Http request.

Ex :
 HttpRequest req     = new HttpRequest();

Santosh Reddy