I'm getting "Body buffer overflow" error from back end. Please suggest on this how to resolve this issue.

Not applicable

The error pasted below: {"Envelope":{"Body":{"Fault":{"faultcode":"soap:Server","detail":{"source":{"errorcode":"protocol.http.TooBigBody"}},"faultstring":"Body buffer overflow","faultactor":{}}},"encodingStyle":"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/"}}

0 6 10K
6 REPLIES 6

@Vithiya.PalanisamyDue to bigger payload coming from your target you are getting bufferOverFlow error. APIGEE has a default limit set on the request/response payload size.in order to increase the same in order to support the bigger payloads, we need to enable the streaming in the TargetEndpoint policy with below property:

<Property name="response.streaming.enabled">true</Property>

and one more thing with streaming enabled you lose the ability to do any transformations on the response payload. Now, you can change the upper limit on payload size via the HTTPRequest.body.buffer.limit parameter

Not applicable

@Vithiya.PalanisamyThe Error occur due to your message payload exceeds the limit size that is coming from your target.So we need to enable the streaming property in the TargetEndpoint policy.Please find below:

<Properties>

<Property name="response.streaming.enabled">true</Property>

</Properties>

Please Note that when streaming is enabled, policies that require access to the request or response payload, such as XSLT transformations and XML to JSON policies cannot be run and they will bypassed.

@Umanng Goel @Anusha Lekkala, I am facing this issue when the payload is >10 MB.

Could you please suggest what is the best way to handle this while retaining the transformation policies also? Streaming enabling worked but I also need transformation and Mashup of the responses.

Thanks,

Pradeep

Not applicable

@Pradeep Peddi

As per apigee docs its strongly recommended not attach policies where streaming is enabled.

Kindly look into the docs.

http://docs.apigee.com/api-services/content/enabling-streaming

@Umanng Goel, thansk for the response. I saw the documentation. Streaming option doesn't help me here as I cannot bypass any policies. Looking for another approach which solves my problem. From your experience would you have any other better approach?

remeeshnair
Participant IV

@Vithiya.Palanisamy If you dont want to use streaming then please refer the community post for increasing these limits.

https://community.apigee.com/questions/2763/what-is-the-maximum-allowed-size-of-the-payload-of.html

If you are working on apigee cloud offereing, you might have to work with customer success team to suggest the best for you. On Premise, this is a change you can make, but make sure you test well on the lower environments.

Regards,

Remeesh