From d3cecfc55baf547b2a2bedddebf7e890510187e0 Mon Sep 17 00:00:00 2001 From: Michael Kret <88898367+michael-radency@users.noreply.github.com> Date: Fri, 27 May 2022 19:17:44 +0300 Subject: [PATCH] fix(core): Fix problem with uploading large files (#3370) * :zap: fix * :zap: moved setting to axios config --- packages/core/src/NodeExecuteFunctions.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/src/NodeExecuteFunctions.ts b/packages/core/src/NodeExecuteFunctions.ts index 1da062693e..03cf4a0242 100644 --- a/packages/core/src/NodeExecuteFunctions.ts +++ b/packages/core/src/NodeExecuteFunctions.ts @@ -541,7 +541,10 @@ async function proxyRequestToAxios( return requestPromiseWithDefaults.call(null, uriOrObject, options); } - let axiosConfig: AxiosRequestConfig = {}; + let axiosConfig: AxiosRequestConfig = { + maxBodyLength: Infinity, + maxContentLength: Infinity, + }; let axiosPromise: AxiosPromise; type ConfigObject = { auth?: { sendImmediately: boolean };