๐ SonarQube: Error: "There is no SonarQube project with key <key>"
Closed this issue ยท 3 comments
Plugin Name
sonarqube
๐ Description
I followed all the instructions to set up the sonarqube plugin and backend plugin. I confirmed that the key being requested by BackStage is in fact located in SonarQube.
I manually tested the URL in SonarQube and I get the expected JSON response.
https://sonarqube-dev/api/components/show?component=<key>
However, when I view the Catalog entry, under "Code Quality", I see only:
No information to display
There is no SonarQube project with key ''.
๐ Expected behavior
Data should be loaded in SonarQube and display information for the SonarQube project.
๐ Actual Behavior with Screenshots
๐ Reproduction steps
- Follow setup steps for sonarqube plugin and sonarqube backend plugin.
- View catalog entry
๐ Provide the context for the Bug.
I am trying to get SonarQube project information to be displayed in the catalog.
๐ Have you spent some time to check if this bug has been raised before?
- I checked and didn't find similar issue
๐ข Have you read the Code of Conduct?
- I have read the Code of Conduct
Are you willing to submit PR?
None
@cliffAtOsaic Would you mind checking in your network console for the API, specifically looking for a response from an api like "findings", and try to see if the response contains a successful response status, and a body that contains a "measures" item. If possible send the whole http response here.
I was confused because I was getting 200 responses but something wasn't working right.
I was able to resolve the issue by starting with a fresh scaffolding and walking through the set-up steps again. I think something was off in my backend configuration plus the fresh scaffolding installed a bunch of newer versions of core components.
One more change worth mentioning:
I had a "global" token set up in SonarQube. I saw others saying that switching to a "User" token helped.
I don't know if that was the missing piece, but I did that as well. Wanted to leave this here in case others have the same issue. :)