allure-docker-service icon indicating copy to clipboard operation
allure-docker-service copied to clipboard

413 on sending results, without nginx

Open greysky007 opened this issue 7 months ago • 1 comments

I have this message when sending result {"meta_data":{"message":"413 Request Entity Too Large: The data value transmitted exceeds the capacity limit."}}.

greysky007 avatar May 16 '25 05:05 greysky007

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

ylazakovich avatar Jun 02 '25 08:06 ylazakovich