Skip to content

Commit e30a7ef

Browse files
committed
Allow unlimited size for parser finding upload
Axios seems to have an issue where we are hitting a maximum upload size, even though neither we nor the server set it. This commit explicitly sets the maximum upload size to unlimited, which seems to fix the issue. Signed-off-by: Max Maass <max.maass@iteratec.com>
1 parent 94482e7 commit e30a7ef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

parser-sdk/nodejs/parser-wrapper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ async function uploadResultToFileStorageService(
2727
return axios
2828
.put(resultUploadUrl, findingsWithIdsAndDates, {
2929
headers: { "content-type": "" },
30+
maxBodyLength: Infinity,
3031
})
3132
.catch(function (error) {
3233
if (error.response) {

0 commit comments

Comments
 (0)