500 on /api/qualityprofiles/search for one project

SonarCloud Quality Profiles page returns 500 for project

ALM used

GitHub

CI system used

GitHub Actions

Scanner command used when applicable

Not applicable / not related to scanner execution.

The error happens in the SonarCloud web UI when opening the project Quality Profiles page.

Languages of the repository

Python
YAML / GitHub Actions
Dockerfile, if detected by SonarCloud

SonarCloud project URL

Project:

https://sonarcloud.io/project/overview?id=coffeehouse-tools_Digi

Broken page:

https://sonarcloud.io/project/quality_profiles?id=coffeehouse-tools_Digi

Error observed

When opening the project Quality Profiles page, the UI shows:

An unexpected error occurred. Please try again later.

Browser DevTools / Network shows the following backend request failing:

GET https://sonarcloud.io/api/qualityprofiles/search?organization=coffeehouse-tools&project=coffeehouse-tools_Digi
500 Internal Server Error

Console excerpt:

utils-DajVMXaS.js:2  GET https://sonarcloud.io/api/qualityprofiles/search?organization=coffeehouse-tools&project=coffeehouse-tools_Digi 500 (Internal Server Error)

Other console messages such as LaunchDarkly and Beamer initialization appear unrelated. The actual failing request is the SonarCloud API call above.

Steps to reproduce

  1. Log in to SonarCloud.

  2. Open project:

https://sonarcloud.io/project/overview?id=coffeehouse-tools_Digi

  1. Open Project Settings / Quality Profiles, or directly open:
https://sonarcloud.io/project/quality_profiles?id=coffeehouse-tools_Digi

  1. The page shows:
An unexpected error occurred. Please try again later.

  1. In browser DevTools / Network, the request below returns HTTP 500:
https://sonarcloud.io/api/qualityprofiles/search?organization=coffeehouse-tools&project=coffeehouse-tools_Digi

Potential workaround

No confirmed workaround.

This looks like a backend-side issue while resolving quality profile associations for this project, possibly a broken/orphaned/corrupted quality profile association.

Could someone from SonarSource please check backend logs for this project and verify whether the project has an invalid or orphaned quality profile association?

Hello!

We are trialing the SonarQube Cloud service and are trying to integrate the scanner service into our Azure DevOps pipeline. Last week we were able to use the service while using the Automatic Analysis, but in order to add code coverage we want to integrate it into our pipeline.

The command I added to the pipeline looks as follows:

- task: SonarCloudPrepare@4
  inputs:
    SonarQube: 'SonarQube'
    organization: '<organization-name>'
    scannerMode: 'dotnet'
    projectKey: '<project-key>'
    projectName: '<project-name>'
    extraProperties: sonar.verbose=true

When I ran this command I got an error 500 from the API that retrieves quality-profiles:

	
11:16:11.394  Fetching quality profile for project '<project-key>'...
11:16:11.394  Downloading from https://sonarcloud.io/api/qualityprofiles/search?project=<project-key>&organization=<organization-name>...
11:16:11.684  Response received from https://sonarcloud.io/api/qualityprofiles/search?project=<project-key>&organization=<organization-name>...

##[error]Unhandled Exception:
##[error]System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 ().

The same error occurs when I try to use the command line from my local project:

PM> dotnet sonarscanner begin /o:"<organization-name>" /k:"<project-key>" /d:sonar.token="<token>"
SonarScanner for .NET 11.2.1
Using the .NET Core version of the Scanner for .NET
Pre-processing started.
Preparing working directories...
12:22:38.078  Updating build integration targets...
12:22:39.434  Using SonarCloud.
12:22:39.738  Fetching analysis configuration settings...
dotnet : Unhandled exception. System.Net.Http.HttpRequestException: Response status code does not indicate success: 500.
At line:1 char:1
+ dotnet sonarscanner begin /o:"<organization-name>" /k:"<project-key> ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Unhandled excep...e success: 500.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.TryDownloadIfExists(Uri url, Boolean logPermissionDenied)
   at SonarScanner.MSBuild.PreProcessor.WebServer.SonarWebServerBase.DownloadQualityProfile(String projectKey, String projectBranch, String language)
   at SonarScanner.MSBuild.PreProcessor.PreProcessor.FetchArgumentsAndRuleSets(ISonarWebServer server, ProcessedArgs args, BuildSettings settings)
   at SonarScanner.MSBuild.PreProcessor.PreProcessor.DoExecute(BuildSettings buildSettings, ProcessedArgs localSettings)
   at SonarScanner.MSBuild.PreProcessor.PreProcessor.Execute(IEnumerable`1 args)
   at SonarScanner.MSBuild.BootstrapperClass.PreProcess()
   at SonarScanner.MSBuild.BootstrapperClass.Execute()
   at SonarScanner.MSBuild.Program.Execute(String[] args, IRuntime runtime)
   at SonarScanner.MSBuild.Program.Main(String[] args)
   at SonarScanner.MSBuild.Program.<Main>(String[] args)

When I open the page for quality profiles in my project, I get the message “An unexpected error occurred. Please try again later.”

What I’ve tried already:

  • Removed the project and re-added it
  • Created a new quality profile based on the “Sonar way” and excluded a rule which was marked as obsolete and set it as organization default
  • Created an empty quality profile and set it as organization default

I found some related topics to this problem which seemed to suggest database corruption, but since we are using the cloud service, I don’t think I can fix this myself.

Can somebody point me in the right direction on how to fix this issue?

Same shape as #182856 — that reporter tried project re-add, new quality profiles, and empty default profiles. None worked. Suspected DB corruption requiring server-side intervention. My case adds one diagnostic the prior thread didn’t isolate: all OTHER project endpoints (issues, hotspots, coverage, quality gate) return 200 normally — only /api/qualityprofiles/search?project=coffeehouse-tools_Digi returns 500. That points the corruption to the project’s project_qprofiles linkage specifically.

Hi Ruben and Thomas,

Welcome to the community and thanks for these reports!

I’ve taken the liberty to combine your threads because you’re experiencing the same issue. I’ve raised an incident, we’re looking into it and I’ll keep you posted.

Thomas, you have tried a few different configuration combinations and gotten the error consistently, but I’m curious: have you tried setting the default organization quality profile to “Sonar way” and creating a brand new project in the organization? In such a case, do you still get the error when navigating to the project’s Quality Profile page?

Cheers,
Andres

Same issue on project Farofa-Labs_revelumi (org: farofa-labs), GitHub Actions, SonarScanner CLI 7.2.0.5079.

Manual curl with same token:

  • GET …/qualityprofiles/search.protobuf?organization=farofa-labs → 200 (6826 bytes)
  • GET …/qualityprofiles/search.protobuf?projectKey=Farofa-Labs_revelumi&organization=farofa-labs → 500
    Body: {“errors”:[{“msg”:“An unexpected error occurred. Please try again later.”}]}
  • GET …/settings/values.protobuf?component=Farofa-Labs_revelumi → 200

Failure started ~2026-05-26 17:05 UTC; same code tree passed earlier that day.
Scanner debug: https://github.com/Farofa-Labs/revelumi/actions/runs/26466228601/job/77940532754
Internal projectId from scanner: 9ea44312-f9fb-4522-88d7-32580c70033f

Please include our project in the incident you raised. Happy to test a brand-new project key if that helps isolate project_qprofiles corruption.

Hello,

Thanks for the additional reports and details here. I wanted to provide an update.

Our teams have identified the root cause of this issue. After a recent migration, some organizations were left without a default quality profile for the AI language because their default had previously pointed to an obsolete built-in profile. In that state, project-specific quality profile lookups can fail with a 500 error.

We have now deployed a fix to supply the missing default quality profile and point affected organizations to the built-in “Sonar agentic AI” profile. We’ll continue monitoring the rollout and let us know if you experience any further issues.

Stevan

Thank you. A small follow-up question: which quality gate shall i chose in project’s AI Code Assurance page? It shows only Sonar way which is explicitly Not qualified for AI Code Assurance.

Hi Ruben,

We are in the process of making some changes to our AI Quality Gate, right now you won’t find a ‘built-in’ one. You’ll need to make your own custom one matching the conditions outlined in ‘Sonar Way for AI Code’ and select that one.

Hope that helps.

Stevan