PayloadTooLargeError: request entity too large

My issue was because I had

app.use(express.json())

and also

app.use(bodyParser.json({ limit: "50mb" }))

and

app.use(bodyParser.urlencoded({ limit: "50mb", extended: true, parameterLimit: 50000 }))

I solved it after removing app.use(express.json()). Hope it helps somebody with the same issue.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)