cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CAP Java - HTTPHeader size error

DC
Explorer
0 Kudos

Hi Experts,

We have a custom Action which processes an Arrays of requests and sends a response. We are using The Messages API for gathering success and error messages

For a complete successful payload (no errors found) we are get this in the logs. The sap-messages header is obviously too large 😞

Where do we update this setting when running in BAS and when on BTP Foundry???

org.apache.coyote.http11.HeadersTooLargeException: An attempt was made to write more 
data to the response headers than there was room available in the buffer. 
Increase maxHttpHeaderSize on the connector or write less data into the response headers.<br>
View Entire Topic
mkuhr-test
Advisor
Advisor
0 Kudos

Please note that in case you are deploying your app as a WAR file you need to configure the tomcat container. Check this documentation in case you are using the SAP Java Buildpack with a WAR based deployment.