From 617affef267836b0a9e2b27177d0f775e03e1abb Mon Sep 17 00:00:00 2001 From: Robert Monfera Date: Wed, 27 Feb 2019 09:38:16 +0100 Subject: [PATCH] fix: bump max payload size up to 25MB (#31974) (#32103) default of 1MB is very easy to hit, so it's not hard to make Canvas fail --- .../interpreter/server/routes/server_functions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/legacy/core_plugins/interpreter/server/routes/server_functions.js b/src/legacy/core_plugins/interpreter/server/routes/server_functions.js index a0fe045cd49bd..07b3fabad6afd 100644 --- a/src/legacy/core_plugins/interpreter/server/routes/server_functions.js +++ b/src/legacy/core_plugins/interpreter/server/routes/server_functions.js @@ -43,6 +43,10 @@ function runServerFunctions(server) { method: 'POST', path: `${API_ROUTE}/fns`, options: { + payload: { + allow: 'application/json', + maxBytes: 26214400, // 25MB payload limit + }, validate: { payload: Joi.object({ functions: Joi.array().items(