+ Start a Discussion
sumanth v 7sumanth v 7 

System.CalloutException: Read timed out

I am facing this error in REST API webservice callout. Could you any one help to resolve this?

Note: I tried in giving req.setTimeout(20);

req.setEndpoint(toolingendpoint);
req.setMethod('GET');
Http h = new Http();
req.setTimeout(20);
HttpResponse res = h.send(req);
Balaji BondarBalaji Bondar
Hi Sumanth,

can you increase the time to 120,000 and try out.If you will get the read time out then you will have to check for the endpoint URL.
value between 1 and 120,000 milliseconds.
Important :
If this is what you were looking for then please mark it as a "SOLUTION" or You can Click on the "Like" Button if this was beneficial for you.
sumanth v 7sumanth v 7
Hi Balaji,
I tried by giving 120000 as well, though facing the same issue.

Can you please explain how to check the endpoint URL?