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
Jithin ChandJithin Chand 

Rest callout : read timed out

Hi All,

I have a REST callout to an external API. The Apex callout is causing callout error as it is taking more than 2 minutes to execute. 
However, when i use the same record in POSTMAN tool, i am getting the response in 10 seconds.

What could be the reson that there is so much variation in the time to execute the same functionality.
Best Answer chosen by Jithin Chand
Jithin ChandJithin Chand
I set the header ('content-type','application/Json'). to fix the issue.