Hello i have sonar ce 8.9 and “dotnet-sonarscanner” (versión ‘5.12.0’) When I analyze the code I get the error:
…
When Downloading from https://…/api/editions/is_valid_license
Unexpected character encountered while parsing value <. Path ‘’, line0, position 0
Pre-processing failed. Exit code: 1
Why community version does not have this api url?
Is there any parameter for the scanner do not consult this api url?
What URL are you providing to sonar.host.url? When you put it into your browser, does it change at all (remove a trailing slash, go to a different context)…
Sonar CE
With https://……/api/edition/is_valid_license
Show ( nginx reverse proxy) An error ocurred. Sorry the page you are looking for is currently unavaliable
Sonar EE
With https://…./api/editions/is_valid_license
Show (nginx reverse proxy) {“isValidLicense”:true}
And with Sonar CE
With https://……/web_api/api/edition/is_valid_license
Is it possible that Nginx is directing all 404s to a cusotm error page in your setup? The scanner is (I admit, flimisly) relying on the existence of {"errors":[{"msg":"Unknown url : /api/editions/is_valid_license"}]}