allure-docker-service
allure-docker-service copied to clipboard
413 on sending results, without nginx
I have this message when sending result {"meta_data":{"message":"413 Request Entity Too Large: The data value transmitted exceeds the capacity limit."}}.
We have also faced this issue, you can resolve it via using segmentations
Try to separate your zip on several segments then send this segments as final you will be able to create report
echo "------------------SEND-RESULTS------------------";
for (( i=0; i<$FILES_TO_SEND_SIZE; i+=$FILES_SEGMENT_SIZE )); do
FILES='';
for FILE in ${FILES_TO_SEND[@]:$i:$FILES_SEGMENT_SIZE}; do
FILES+="-F files[]=@$FILE ";
done
echo "------------------UPLOAD-SEGMENT-[$i-$(($i+$FILES_SEGMENT_SIZE))]------------------";
curl -s -o /dev/null -v -X POST "$ALLURE_SERVER/allure-docker-service/send-results?project_id=$ALLURE_PROJECT_ID&force_project_creation=true" -H 'Content-Type: multipart/form-data' -H "X-CSRF-TOKEN: $CRSF_ACCESS_TOKEN_VALUE" -b cookiesFile $FILES -ik;
done