Failed to request and parse 'https://sonarcloud.io/api/server/version': Object reference not set to an instance of an object

Template for a good new topic, formatted with Markdown:

Azure DevOps
C#

The pipeline of my Azure DevOps project is not running because an error on the SonarCloudPrepare service giving us the message in the title. Seems like it fails because there is no version number in the URL ¿?
Here is our pipeline cource code:
trigger:

  • master

pool: ‘Servers CI’
variables:
solution: ‘**/*.sln’
buildPlatform: ‘Any CPU’
buildConfiguration: ‘Release’

steps:

  • task: UseDotNet@2
    displayName: ‘Install .NET Core SDK’
    inputs:
    version: 3.1.x
    performMultiLevelLookup: true

  • task: SonarCloudPrepare@1
    inputs:
    SonarCloud: ‘Sonarcloud SecCert’
    scannerMode: ‘MSBuild’
    organization: ‘XXXXXX’
    projectKey: ‘XXXXXX_SecCert’
    projectName: ‘SecCert’
    projectVersion: 1.0

Hi @mauro-maulini66712 and welcome to the community.

Can you please share the logs of this failing execution, in debug mode please ?

Thanks in advance.

Hi Mickaël
I’m adding as upload the log with the problem.
debuglogs.txt (66.6 KB)

Thanks in advance.

Hi @mauro-maulini66712 and thanks.

Does it happen consistently since the first occurrence of this error ?

Is your agent behind a proxy by chance ?

Mickaël

Hi Mickaël.
Yes the error is happening constantly from the first run.
I was asking to the DevOps people and there is not a proxy over this, but we are using on premise server to deploy so I will request permissions for the sonarcloud.io url to be accessed from this server in order to open the connection and solve this.
Thank you.