Skip to Content
0
Feb 03, 2020 at 12:34 PM

Error while parsing protocol: invalid communication buffer structure in HANA XSA

744 Views Last edit May 21, 2020 at 05:48 PM 4 rev

Hello Experts,

I am working on SAP XSA Multi Target Application and using nodeJS application on HANA XSA Platform. While posting large files I am getting error "PayloadTooLargeError: request entity too large". After reading multiple blogs(including https://github.com/expressjs/body-parser), I got to know that the request body size is set to '100kb'. To fix this, I have increased the limit by adding code:

app.use(bodyparser.urlencoded({ limit: '5mb', parameterLimit: 100000, extended: true }));

After adding this, I am getting other error: "Error: error while parsing protocol: invalid communication buffer structure".

Kindly suggest fix of this issue.

Regards,

Shama