Attempting to connect from Visual Studio 2019 with SonarLint to our SonarQube 8.2 instance produces the following.
Connecting to SonarQube server: https://<removed>/
Connecting to SonarQube server: Validating credentials
Connecting to 'https://<removed>/'.
SonarQube request failed: Input string was not in a correct format.
Connecting to SonarQube server: Failed
Disconnecting...
Have tried with both token and credentials and against two servers but the response is the same. The servers use ldap connections in the background.
Based on the logs that you provided, it’s possible that we are unable to fetch the version of the SonarQube server.
Can you please help us check this, by making a GET request to https://<removed>/api/server/version, along with Authorization header set to Basic Authentication?
Please post the response that you get.
It was the latest version of sonarlint installed from the sonarlint website yesterday
Because we build from source, the version is the snapshot. Parsing of the version was the cause as you suspected - removing this extra string and rebuilding successfully resolves this.
8.2-SNAPSHOT
It does not occur with the released version from the website.