From c5abfd10d2ad04c09797cec2c2abb1a823d93dd9 Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Mon, 4 Nov 2024 13:31:45 +0100 Subject: [PATCH] fix(publishVersion): fix maxBodyLength when uploading to appHub --- cli/src/lib/publishVersion.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/src/lib/publishVersion.js b/cli/src/lib/publishVersion.js index 1c4b2274b..24ba570d0 100644 --- a/cli/src/lib/publishVersion.js +++ b/cli/src/lib/publishVersion.js @@ -60,15 +60,16 @@ module.exports = async ({ await client.post(uploadAppUrl, formData, { headers: formData.getHeaders(), timeout: timeout * 1000, + maxBodyLength: Infinity, + maxContentLength: Infinity, }) reporter.info(`Successfully published ${name} with version ${version}`) } catch (e) { if (e.isAxiosError) { dumpHttpError('Failed to upload app, HTTP error', e.response) - } else { - reporter.error(e) } + reporter.error(e) exit(1) } }