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
Abhishek ChopraAbhishek Chopra 

if there is a Limit for getBody() response size for Http callouts ?

Hi All,

I'm Getting this error "response size exceeded 15mb organization limit " i'm making a Http Callout to fetch data(GET Operation) to extrenal database and display the data on VF page and i'm getting this above highlighted error.

I investigated and found out the response is more than 4MB size, the response has around :
10,224 - opportunity Products
178 - Opportunity.

I want to know if there is a limit of 3MB for the response size(getBody()) we can collect on the Salesforce side ? If No, how can i eradicate this error..!

Can someone help out, this is urgent..!

Thanks in Advance,
Abhishek
Deepali KulshresthaDeepali Kulshrestha
Hi Abhishek,

In the docs salesforce has mentioned some callout limits.
Please refer to the following link as it may be helpful in solving your problem:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_timeouts.htm

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha