set limit of 500mb for request body size
This commit is contained in:
4
index.js
4
index.js
@@ -3,7 +3,9 @@ const axios = require('axios');
|
|||||||
const app = express();
|
const app = express();
|
||||||
const port = 7000;
|
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];
|
const RETRY_ERROR_CODES = [408, 500, 502, 503, 504, 522, 524, 599];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user