Huge response from Target Backend throwing error

Hi

We are getting below error when we are receiving huge response from target backend.

Please let us know which configuration needs to be changed to receive response of any size.

Thanks

Response:

{
  "fault": {
 
"faultstring": "Body buffer overflow",
   
"detail": {
     
"errorcode": "protocol.http.TooBigBody"

   }
  }
}
0 2 291
2 REPLIES 2

Hi Gaurav,

You can try streaming the response for large response payloads. You can enable response streaming

by setting HTTPTargetConnection properties in target endpoint.

<HTTPTargetConnection>
        <Properties>
            <Property name="response.streaming.enabled">true</Property>
        </Properties>
        <URL>http://sample.com</URL>
    </HTTPTargetConnection>

@GAURAV, you can also try to paginate the response payload