We are using Sonarqube task in Devops Pipeline Yaml file where we added 3 tasks SonarQubePrepare, SonarQubeAnalyze and SonarQubePublish. but its failing at SonarQubeAnalyze task with below errors (attached) and at the end of the task its hows as below
##[error]ERROR: Error during SonarScanner execution
ERROR: Failed to upload report - HTTP code 413: The page was not displayed because the request entity is too large.
ERROR: Error during SonarScanner execution
ERROR: Failed to upload report - HTTP code 413: The page was not displayed because the request entity is too large.
##[error]The process ‘C:\a_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.21.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe’ failed with exit code 1
2021-08-27T14:59:04.2887762Z ##[error]ERROR: C:\a\1\.sonarqube\out\.sonar\.sonartmp\eslint-bridge-bundle\package\node_modules\eslint\lib\cli-engine\cli-engine.js:421
2021-08-27T14:59:04.2890182Z ERROR: C:\a\1\.sonarqube\out\.sonar\.sonartmp\eslint-bridge-bundle\package\node_modules\eslint\lib\cli-engine\cli-engine.js:421
2021-08-27T14:59:04.2895181Z ##[error]ERROR: } catch {
ERROR: ^
ERROR:
ERROR: SyntaxError: Unexpected token {
ERROR: at new Script (vm.js:51:7)
ERROR: at createScript (vm.js:136:10)
ERROR: at Object.runInThisContext (vm.js:197:10)
ERROR: at Module._compile (module.js:613:28)
ERROR: at Object.Module._extensions..js (module.js:660:10)
ERROR: at Module.load (module.js:561:32)
ERROR: at tryModuleLoad (module.js:501:12)
ERROR: at Function.Module._load (module.js:493:3)
ERROR: at Module.require (module.js:593:17)
ERROR: at require (internal/module.js:11:18)
This error tells me the version of NodeJS is not a good one for analyzing Javascript. Supported versions are current LTS versions (v10, v12, v14) and version v15.
What version of NodeJS is installed on these build agents?
Yes Installing the latest version of Node resolved the issues but will try to do the changes in IIS for Request entity Too large in Build agent and check.
After doing these changes as suggested which is increasing uploadReadAheadSize to max and mazRequestEntityAllowed in IIS, still having the same issue in Build. i belive due to large size its not able to upload, Can you please suggest some ? Attached is screenshot