Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while parsing protocol: invalid communication buffer structure #146

Open
Shama19 opened this issue Feb 5, 2020 · 0 comments
Open

Comments

@Shama19
Copy link

Shama19 commented Feb 5, 2020

I am working on SAP XSA Multi Target Application and using nodeJS application for services.
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". Tried solution as per #19, still getting same issue.

Kindly suggest fix of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant