Streaming - 1. what to do if my payload is over the limit (about 40mb) 2. how to validate payload in case of streaming?

Hello,

Streaming is helpful and beneficial for oversize payload, but here are my issue:

1. what to do if my payload is over the limit (about 40mb which higher than 10 mb limit)

2. how to validate payload in case of streaming? my usecase required that payload must be scanned/validated! If policy related to body doesn't work then what are the alternatives!

Thnx

Satty

0 1 329
1 REPLY 1

Hi @Satish Singh, if it is more than 10MB by default the error is,

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

If it is a private cloud then you can modify this value. Be sure to test before deploying the change to production.

To bypass the error you need to enable streaming, with streaming enabled, Apigee strongly recommends you do not attach policies that require access to the request or response payload

https://docs.apigee.com/api-platform/develop/enabling-streaming

In your scenario, validating 40mb payload may not be done in Apigee. It has to be done via an ESB/ETL tool.