Skip to content

Commit

Permalink
Merge pull request #890 from dhis2/fix/publishversion-body-maxlength
Browse files Browse the repository at this point in the history
fix(publishVersion): fix maxBodyLength when uploading to appHub
  • Loading branch information
stian-sandvold authored Nov 4, 2024
2 parents 8606b1a + c5abfd1 commit ea89701
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 ea89701

Please sign in to comment.