Unable to reach the server

Hi ,

I am getting the below error in the Azure CI/CD pipeline. I have generated the new tokens in Sonar Cloud, and the same tokens applied to service connection verification have succeeded. After the pipeline runs, I am getting the below error in the service connection:

So please confirm whether this is an agent-level issue or a Sonarcloud portal issue

Failed to query service connection API: ‘https://sonarcloud.io/api/organizations/search?member=true’. Status Code: ‘Unauthorized’, Response from server: ‘’

Hi,

Can you provide the full analysis log, please?

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.

 
Ann

Hi Ann,

Thanks for your quick response please find the attached error
SonarCloud prepare analysis error log.txt (2.5 KB)
log for your reference.

Thanks,
Anand.

Hi Anand,

2023-07-12T14:16:16.1872732Z ##[error]10:16:16.169  Unable to connect to server. Please check if the server is running and if the address is correct. Url: 'https://sonarcloud.io/api/server/version'.
2023-07-12T14:16:16.1885101Z 10:16:16.169  Unable to connect to server. Please check if the server is running and if the address is correct. Url: 'https://sonarcloud.io/api/server/version'.
2023-07-12T14:16:16.1886781Z ##[error]10:16:16.185  An error occured while querying the server version! Please check if the server is running and if the address is correct.
2023-07-12T14:16:16.1888149Z 10:16:16.185  An error occured while querying the server version! Please check if the server is running and if the address is correct.

Are you using self-hosted build agents? If so, you probably need to talk to your network folks to make sure they can get out to SonarCloud

 
Ann