Skip to content

Commit

Permalink
fix(publishVersion): fix maxBodyLength when uploading to appHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Nov 4, 2024
1 parent 8606b1a commit c5abfd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/src/lib/publishVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit c5abfd1

Please sign in to comment.