Skip to content

Error when there are more than 10,000 projects #2039

@matthiasorange-cds

Description

@matthiasorange-cds

Hello,
Is it possible to replace /api/components/search_projects with /api/projects/search to list projects?
The /api/components/search_projects API is listed as "internal" in the documentation:
https://next.sonarqube.com/sonarqube/web_api/api/components/search_projects?internal=true
There's also an error when there are more than 10,000 projects on a server.
When accessing page 21, we get a HTTP 400 error with this message:

{"errors":[{"msg":"Can return only the first 10,000 results. 10,500th result asked."}]}

This is not the case with the /api/projects/search API

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions