java.lang.IllegalStateException: Error status returned by url [https://<sonarqube server dns>/api/v2

  • which versions are you using:
    • SonarQube Server: Developer Edition v2025.4.2
    • Scanner CLI: v6.2.1.4610
  • how is Sonar Scanner CLI deployed:
    • zip
  • what are you trying to achieve:
    • scan files in an Azure DevOps repository
  • what have you tried so far to achieve this:
    • /opt/sonar-scaner/bin/sonar-scanner -Dsonar.python.version=3 -Dsonar.projectKey=<>key -Dsonar.scm.disabled=true -Dsonar.host.url=https:/// -Dsonar.token= -X

Hi,

Welcome to the community!

Could we have your full analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann

Hi Ann, I figured it out, my token was incorrect

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.