i have a api returns problem! when i try to get some results of “api/measures/component?metricKeys=coverage&component=mysonarproject”, some projects returns full data of search normaly, but some projects returns an error mensage:
{“errors”:[{“msg”:“Component key \u0027’mysonarproject’\u0027 not found”}]}
a try to find breaks on background tasks, but both projects with error on api and no error, have all of background tasks finished status ok. I cant post imgs, but both have same status finished without erros.
someone can help me with this error?
My enviroment:
sonarqube enterprise 9.6
bamboo server 8.2
same user to all pipelines with same access for all projects.
These are the same API calls used when browsing the SonarQube UI, so I would suggest browsing those projects while following this guide to see what query parameters are being used. Maybe you’re accidentally using the project name instead of the project key?
it’s funny when you ask a question that at the time seems far-fetched and complex and by the end it was so obvious that you were dodged by the pressure of deliveries, but you solved the riddle! We have a particularity in our environment where an identification of the organization to which the project belongs is applied to the project key, this is a pattern so ingrained that remembering that whoever created the project may not have applied it went unnoticed. in the end, it was just applying the correct projectkey in the query and we ended up finding a gap of projects that were created non-standard without the organization in the project key.
a problem solved and a new problem to start solving.