From 8dbfcdf8c0134b5a77501bb3789595496e82ea1d Mon Sep 17 00:00:00 2001 From: Aaro Varis Date: Sun, 29 Sep 2024 18:15:43 +0300 Subject: [PATCH] set limit of 500mb for request body size --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 4438554..545d09a 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,9 @@ const axios = require('axios'); const app = express(); const port = 7000; -app.use(express.json()); +app.use(express.json({ + limit: '500mb' +})); const RETRY_ERROR_CODES = [408, 500, 502, 503, 504, 522, 524, 599];