Sonar Qube throwing error "ERROR: ClientError [PayloadTooLargeError]: request entity too large"

Hi

I have created clientSoftware:hallasan_smart_printerdriver project in SonarQube.

When I run SonarQube analysis through Codeway/Azure , I am getting below error:

2021-05-24T03:52:10.6571769Z INFO: ------------- Run sensors on module hallasan_smart_printerdriver
2021-05-24T03:52:10.9186968Z INFO: Load metrics repository
2021-05-24T03:52:10.9899789Z INFO: Load metrics repository (done) | time=62ms
2021-05-24T03:52:18.4236423Z INFO: Sensor SonarCSS Metrics [cssfamily]
2021-05-24T03:52:18.6858201Z INFO: Sensor SonarCSS Metrics [cssfamily] (done) | time=234ms
2021-05-24T03:52:18.6858919Z INFO: Sensor SonarCSS Rules [cssfamily]
2021-05-24T03:52:25.9542636Z INFO: 395 source files to be analyzed
2021-05-24T03:52:26.8050645Z ##[error]ERROR: ClientError [PayloadTooLargeError]: request entity too large
2021-05-24T03:52:26.8055624Z ERROR: ClientError [PayloadTooLargeError]: request entity too large
2021-05-24T03:52:26.8076039Z ##[error]ERROR:     at readStream (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\raw-body\index.js:155:17)
ERROR:     at getRawBody (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\raw-body\index.js:108:12)
ERROR:     at read (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\body-parser\lib\read.js:77:3)
ERROR:     at jsonParser (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\body-parser\lib\types\json.js:135:5)
ERROR:     at Layer.handle [as handle_request] (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\express\lib\router\layer.js:95:5)
ERROR:     at trim_prefix (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\express\lib\router\index.js:317:13)
ERROR:     at F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\express\lib\router\index.js:284:7
ERROR:     at Function.process_params (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\express\lib\router\index.js:335:12)
ERROR:     at next (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\express\lib\router\index.js:275:10)
ERROR:     at expressInit (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\express\lib\middleware\init.js:40:5) {
ERROR:   message: 'request entity too large',
ERROR:   expected: 191310,
ERROR:   length: 191310,
ERROR:   limit: 102400,
ERROR:   type: 'entity.too.large'
ERROR: }
2021-05-24T03:52:26.8085289Z ERROR:     at readStream (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\raw-body\index.js:155:17)
2021-05-24T03:52:26.8086947Z ERROR:     at getRawBody (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\raw-body\index.js:108:12)
2021-05-24T03:52:26.8090219Z ERROR:     at read (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\body-parser\lib\read.js:77:3)
2021-05-24T03:52:26.8091917Z ERROR:     at jsonParser (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\body-parser\lib\types\json.js:135:5)
2021-05-24T03:52:26.8093731Z ERROR:     at Layer.handle [as handle_request] (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\express\lib\router\layer.js:95:5)
2021-05-24T03:52:26.8095545Z ERROR:     at trim_prefix (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\express\lib\router\index.js:317:13)
2021-05-24T03:52:26.8097462Z ERROR:     at F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\express\lib\router\index.js:284:7
2021-05-24T03:52:26.8099174Z ERROR:     at Function.process_params (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\express\lib\router\index.js:335:12)
2021-05-24T03:52:26.8100899Z ERROR:     at next (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\express\lib\router\index.js:275:10)
2021-05-24T03:52:26.8102811Z ERROR:     at expressInit (F:\agent\_work\1295\s\.scannerwork\css-bundle\node_modules\express\lib\middleware\init.js:40:5) {
2021-05-24T03:52:26.8104277Z ERROR:   message: 'request entity too large',
2021-05-24T03:52:26.8105164Z ERROR:   expected: 191310,
2021-05-24T03:52:26.8105944Z ERROR:   length: 191310,
2021-05-24T03:52:26.8106707Z ERROR:   limit: 102400,
2021-05-24T03:52:26.8107505Z ERROR:   type: 'entity.too.large'
2021-05-24T03:52:26.8108249Z ERROR: }

Even after I excluded CSS file from Soanr qube, the same issue being repeated. Can someone check whether any size limit in SonarQube, if so please help us to fix this issue?

Hi,

Welcome to the community!

This is going to be about your network - likely your proxy - and the size payload it’s willing to allow through. You should consult your network folks.

 
Ann