Sonarqube - 404 Client Error when calling sonarqube API

Hi Team,

SonarQube Version - 9.9.4
SonarQube deployed: Docker

Configured Sonarqube in my Gitlab job, and the report gets generated without issue. Yet there is a failure when calling the API to get the coverage. Log messages are here:

[2024-04-12 05:11:28] Checking for SonarQube Properties file…
[2024-04-12 05:11:28] Found the following properties file for SonarQube: pom.xml
[2024-04-12 05:11:28] Project name for SonarQube found: pdp-ec2-md
[2024-04-12 05:11:28] Checking for SonarQube generated report name…
[2024-04-12 05:11:28] Found the following generated report for SonarQube: jacoco.csv
[2024-04-12 05:11:28] Performing API call with GET Method on URL: xxxxx.com
[2024-04-12 05:11:28] Request failed with following error: 404 Client Error: for url: xxxxx.com

Thanks!

Hi,

It looks like you’ve scripted some post-analysis checking and are struggling with the API call.

Have you tried this via the UI? The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.

You may also find this guide helpful.

 
HTH,
Ann