Quantcast
Viewing latest article 20
Browse Latest Browse All 35

Answer by NIKIT PULEKAR for Error: request entity too large

If you are using express.json() and bodyParser together it will give error as express sets its own limit.

app.use(express.json());app.use(express.urlencoded({ extended: false }));

remove above code and just add below code

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

Viewing latest article 20
Browse Latest Browse All 35

Trending Articles