I found this https://github.com/SonarSource/sonar-scanner-msbuild. I cloned to my local and ran the unit test “SonarWebServiceTest” djusted one of the unit test. This is what I found.
Line 327:
if the “Sonar Branch” value has “/ref/head/” I will get the error message that I have been trouble shooting. Fixing the “Sonar Branch” value to “master” the browser url fetches the JSON. Line 327 is happy but the projectFound is false.
With token being pass to my SQ. It seems it does not authenticate or authorize to the project. I did variable the SQ project Key that SQ is using ad Team city is passing.
ws = /api/settings/values?component=
Line 332
ws = /api/settings/values/
URL works through browser. JSON is return. But raises the same exception I am encountering.
The SQ project is “public” the API token I am using is god mode.
This is the result when I put the full ws into the browser
left - /api/settings/values?component=
right - /api/settings/values/


