I am encountering an issue when using the API “api/components/show” on version 9.9.3 of SonarQube. Since the beginning, I have been setting the component key as a parameter to retrieve the ancestors of a project. However, with version 9.9.3, I am receiving an error message:
“errors”: [ { “msg”: “An error has occurred. Please contact your administrator.” } ]
Do you have any insights into what might be causing this issue? Any help or advice would be greatly appreciated.
2023.12.12 13:56:14 ERROR web[AYxZsBY2nm9NY4ZxBCoH][o.s.s.w.WebServiceEngine] Fail to process request
<SONARQUBE_URL>/api/components/show?component=<QualityGovernanceCell><ProjectKey>
java.lang.IllegalStateException: Project is in invalid state.
at org.sonar.server.component.ws.ShowAction.lambda$toWsComponent$1(ShowAction.java:148)
at java.base/java.util.Optional.orElseThrow(Optional.java:403)
The only record I have of this error message (across our Community and support channels) came from a situation where someone had deleted a project, but a portfolio had not been recomputed since that deletion. Could that be happening here?