Error during SonarScanner execution : What is the issue?

I am using SonarQube 9.2.4

Please let me know the cause and how can I resolve this issue ?
I am integrating SonarQube with ADO. I am using self-hosted agent and checked firewall as well. Everything seems to be correct but still getting the below issue.

##[error]12:04:28.746 ERROR: Error during SonarScanner execution
12:04:28.746 ERROR: Error during SonarScanner execution
##[error]java.lang.IllegalStateException: Fail to request url: https://XYZ.com/
java.lang.IllegalStateException: Fail to request url: https://XYZ.com/
##[error]at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:205)
	at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:205)
##[error]at org.sonarqube.ws.client.HttpConnector.get(HttpConnector.java:124)
    at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:111)
    at org.sonar.scanner.bootstrap.DefaultScannerWsClient.call(DefaultScannerWsClient.java:73)
    at org.sonar.scanner.repository.DefaultNewCodePeriodLoader.call(DefaultNewCodePeriodLoader.java:51)
    at org.sonar.scanner.repository.DefaultNewCodePeriodLoader.load(DefaultNewCodePeriodLoader.java:43)
    at org.sonar.scanner.repository.ForkDateSupplier.get(ForkDateSupplier.java:64)
    at org.sonarqube.ws.client.HttpConnector.get(HttpConnector.java:124)
    at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:111)

Hi,

You’ve redacted the URL, which is cool. But without the path, it’s harder to know at which stage analysis failed. I’ll take a guess and say it’s on the very first call to the server, which indicates that the configuration of your SonarQube URL is off. Either that, or you’ve got something “helpful” on the network blocking the traffic.

 
HTH,
Ann

Which path do you want to know?
Here is the complete URL : ##[error]java.lang.IllegalStateException: Fail to request url: https://stage-sonar.pwc.com/api/new_code_periods/show.protobuf?project=us-technology-xlos-phoenix-webapp&branch=develop
Also, Can you please elaborate the Configuration of SonarQube URL is Off line? How and what do I need to change?

I am not an expert in SonarQube.

Hi,

How do you fire off analysis? In Jenkins?

Also, can you provide your analysis log? Feel free to redact any sensitive values if needed.

 
Ann

I am using Azure DevOps.

And can you share your analysis log?