dosubot[bot] commented on issue #8812:
URL: 
https://github.com/apache/incubator-devlake/issues/8812#issuecomment-4134551910

   <!-- Greeting -->
   Hi @psturc! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
incubator-devlake team.
   
   <!-- Answer -->
   This looks like a genuine compatibility issue between SonarCloud and 
SonarQube APIs. The [`CollectAccounts` 
subtask](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/sonarqube/tasks/accounts_collector.go)
 uses the `/api/users/search` endpoint for both SonarCloud and SonarQube 
without differentiation. Based on your error, **SonarCloud doesn't expose this 
endpoint at all** (hence the 404), while SonarQube self-hosted does.
   
   This is similar to a [recently fixed issue 
(#8731)](https://github.com/apache/incubator-devlake/pull/8731) where 
`/api/projects/search` wasn't available on SonarCloud and had to be replaced 
with `/api/components/search_projects`. The same pattern may need to be applied 
here—either find an alternative SonarCloud endpoint for users or make the 
`CollectAccounts` subtask optional/conditional for SonarCloud.
   
   **Workaround**: If you're using the API/Blueprint mode, you might be able to 
skip the `CollectAccounts` subtask in your pipeline configuration. However, 
this may affect user-related data in your dashboards.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention 
[@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=brand-link).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/7e942553-dc85-4aa7-9f4f-fb4abf394a4b?feedback_type=great_response&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/7e942553-dc85-4aa7-9f4f-fb4abf394a4b?feedback_type=irrelevant_answer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/7e942553-dc85-4aa7-9f4f-fb4abf394a4b?feedback_type=incorrect_sources&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/7e942553-dc85-4aa7-9f4f-fb4abf394a4b?feedback_type=too_verbose&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-too_verbose)
 | [Hallucination](https://app.dosu.dev/response-feedback/7e942553-dc85
 
-4aa7-9f4f-fb4abf394a4b?feedback_type=hallucination&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/7e942553-dc85-4aa7-9f4f-fb4abf394a4b?feedback_type=bug_report&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/7e942553-dc85-4aa7-9f4f-fb4abf394a4b?feedback_type=other&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=chat-badge)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20looks%20like%20a%20genuine%20compatibility%20issue%20between%20SonarCloud%20and%20SonarQube%20APIs.%20The%20%5B%60CollectAccounts%60%20subtask%5D%28https%3A//github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/sonarqube/tasks/accounts_collector.go%29%20uses%20the%20%60/api/users/search%60%20endpoint%20for%20both%20SonarCloud%20and%20SonarQube%20without%20differentiation.%20Based%20on%20your%20error%2C%20%2A%2ASonarCloud%20doesn%27t%20expose%20this%20endpoint%20at%20all%2A%2A%20%28hence%20the%20404%29%2C%20while%20SonarQube%20self-hosted%20does.%0A%0AThis%20is%20similar%20to%20a%20%5Brecently%20fixed%20issue%20%28%238731%2
 
9%5D%28https%3A//github.com/apache/incubator-devlake/pull/8731%29%20where%20%60/api/projects/search%60%20wasn%27t%20available%20on%20SonarCloud%20and%20had%20to%20be%20replaced%20with%20%60/api/components/search_projects%60.%20The%20same%20pattern%20may%20need%20to%20be%20applied%20here%E2%80%94either%20find%20an%20alternative%20SonarCloud%20endpoint%20for%20users%20or%20make%20the%20%60CollectAccounts%60%20subtask%20optional/conditional%20for%20SonarCloud.%0A%0A%2A%2AWorkaround%2A%2A%3A%20If%20you%27re%20using%20the%20API/Blueprint%20mode%2C%20you%20might%20be%20able%20to%20skip%20the%20%60CollectAccounts%60%20subtask%20in%20your%20pipeline%20configuration.%20However%2C%20this%20may%20affect%20user-related%20data%20in%20your%20dashboards.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord)&nbsp;[![Share
 on
  
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8812)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to