SAP / SAP/node-hdb

Error while parsing protocol: invalid communication buffer structure

Open
#146 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
322
Forks
99
PR merge metrics
No merged PRs in 30d

Description

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 https://github.com/SAP/node-hdb/issues/19, still getting same issue.

Kindly suggest fix of this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the app.use(bodyparser.urlencoded({ limit: '5mb', parameterLimit: 100000, extended: true })) entry point and compare the reported behavior with SAP/node-hdb issue 19. Reproduce the large-file request and determine why the increased body-parser limit leads to an invalid communication buffer structure; done means a documented, working configuration or a confirmed client limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.