Editor node.js - Error: PayloadTooLargeError: too many parameters

Editor node.js - Error: PayloadTooLargeError: too many parameters

CapamaniaCapamania Posts: 186Questions: 65Answers: 5

I'm using Editor with node.js. I have the select enabled ... and when I select 40 or above records to remove from the table ... I'm getting an error:

FE: A system error has occurred (More information).
BE: PayloadTooLargeError: request entity too large

I want to display 250 records per pagination. How can I handle 250 records at once and delete them with the select option?!

Is this a node.js issue and do I need to alter e.g. https://stackoverflow.com/questions/36716311/node-js-error-too-many-parameters-error-while-uploading-bulk-data ?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 48,908Questions: 1Answers: 7,132 Site admin
    Answer ✓

    Correct - alter the number of parameters that NodeJS is allowing (if you are using body-parser, then as the SO post you linked to suggests, change the limit using the API shown there).

    Allan

  • CapamaniaCapamania Posts: 186Questions: 65Answers: 5
    edited February 12

    Thanks. With using e.g.

    app.use(bodyParser.json({limit: '50mb'})); 
    app.use(bodyParser.urlencoded({limit: '50mb', extended: true, parameterLimit: 1000000}));
    

    ... it works again. Rgds

Sign In or Register to comment.