Version: SonarQube 22.214.171.124929
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<title>400 Unknown Reason</title>
<p>Your browser sent a request that this server could not understand.<br />
steps to reproduce
curl --location --request GET 'https://[sonar-server]/api/system/info' \
--header 'Authorization: Basic [user-token-encodebase64]'
The docs on this should help.
Thanks for your help. I understand that it is not an authentication problem (error 400). In fact, if I do a GET of api/system/status, I get 200 in response.
Finally I was able to solve the problem, it was a duplicate record in the database in the properties table. There were two prop_key with the value ‘sonar.dependencyCheck.xmlReportPath’, deleting one of the occurrences was resolved. I understand that the problem was generated by dependency-check-sonar-plugin, but the sonar api should validate the integrity of the data.