ERROR: ClientError [PayloadTooLargeError]: request entity too large

  • which versions are you using
    INFO: SonarScanner
    INFO: Java 11.0.3 AdoptOpenJDK (64-bit)
    INFO: Windows 10 10.0 amd64

  • what are you trying to achieve
    I am attempting to scan a Python project from the command line.

  • what have you tried so far to achieve this
    Everything seems to work, but I get the following error (running in debug):

15:55:49.492 DEBUG: Analyzing Z:\develop\atd_website_app\static\bootstrap-3.3.7-dist\css\bootstrap.css
15:55:49.523 ERROR: ClientError [PayloadTooLargeError]: request entity too large
15:55:49.523 ERROR:     at readStream (Z:\develop\atd_website_app\.scannerwork\css-bundle\node_modules\raw-body\index.js:155:17)
15:55:49.523 ERROR:     at getRawBody (Z:\develop\atd_website_app\.scannerwork\css-bundle\node_modules\raw-body\index.js:108:12)
15:55:49.523 ERROR:     at read (Z:\develop\atd_website_app\.scannerwork\css-bundle\node_modules\body-parser\lib\read.js:77:3)15:55:49.523 DEBUG: Found 0 issue(s)
15:55:49.539 ERROR:     at jsonParser (Z:\develop\atd_website_app\.scannerwork\css-bundle\node_modules\body-parser\lib\types\json.js:135:5)
15:55:49.539 ERROR:     at Layer.handle [as handle_request] (Z:\develop\atd_website_app\.scannerwork\css-bundle\node_modules\express\lib\router\layer.js:95:5)
15:55:49.539 ERROR:     at trim_prefix (Z:\develop\atd_website_app\.scannerwork\css-bundle\node_modules\express\lib\router\index.js:317:13)

15:55:49.539 ERROR:     at Z:\develop\atd_website_app\.scannerwork\css-bundle\node_modules\express\lib\router\index.js:284:7
15:55:49.554 ERROR:     at Function.process_params (Z:\develop\atd_website_app\.scannerwork\css-bundle\node_modules\express\lib\router\index.js:335:12)
15:55:49.554 ERROR:     at next (Z:\develop\atd_website_app\.scannerwork\css-bundle\node_modules\express\lib\router\index.js:275:10)
15:55:49.554 ERROR:     at expressInit (Z:\develop\atd_website_app\.scannerwork\css-bundle\node_modules\express\lib\middleware\init.js:40:5) {15:55:49.554 DEBUG: Analyzing Z:\develop\atd_website_app\static\select2-4.0.3\src\scss\theme\default\_single.scss

15:55:49.554 ERROR:   expected: 161512,
15:55:49.570 ERROR:   length: 161512,
15:55:49.570 ERROR:   limit: 102400,
15:55:49.570 ERROR:   type: 'entity.too.large'
15:55:49.570 ERROR: }
15:55:49.587 DEBUG: Found 0 issue(s)

It looks like the fix for this would be to increase the limit for the body parser from 100kb. Is there some way to provide that option on the command line or in a property file?


Anyone? Any ideas?

Hey there.

This looks like a third-party library (Bootstrap) which should be excluded from analysis. Your third-party libraries should not be analyzed by SonarQube.

(Also, this is a free community and operators are not standing by. :slight_smile: Give it a few days before bumping a post).

1 Like

Thanks Colin!

You are right, I’ve seen this error several times, but I do believe it has always been 3rd party libraries.

I will exclude them and move along!

Sorry about the quick bump. :frowning:

Thanks again!

PS - I am loving SonarQube!!!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.