MalformedJsonException when running SonarScanner.MSBuild.exe end

sonarqube

(Tijn Tacke) #1

Hi,

Hoping someone can help.

Trying to get SonarCloud to work but getting error when running the “SonarScanner.MSBuild.exe end” command.

Not sure where to start with troubleshooting this issue. Could not find log file that provides more information about cause of issue.

INFO: Source encoding: windows-1252, default locale: en_AU
INFO: Index files
INFO: 0 files indexed
INFO: Sensor SonarJavaXmlFileSensor [java]
INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=0ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
INFO: Sensor C# [csharp]
INFO: Importing 3 Roslyn reports
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 49.755s
INFO: Final Memory: 29M/375M
ERROR: Error during SonarQube Scanner execution
ERROR: com.google.gson.stream.MalformedJsonException: Invalid escape sequence at line 13 column 129 path .issues[0].fullMessage ERROR: Caused by: Invalid escape sequence at line 13 column 129 path .issues[0].fullMessage
ERROR:
INFO: ------------------------------------------------------------------------
The SonarQube Scanner did not complete successfully
16:04:00.971 Creating a summary markdown file…
16:04:01.005 Post-processing failed. Exit code: 1

Any help would be appreciated.

Thanks,
Tijn