SonarLint and SonarCloud could not connect

1,063 views
Skip to first unread message

nunol...@gmail.com

unread,
Jun 11, 2017, 5:33:00 AM6/11/17
to SonarLint
Hi,
I'm trying to use SonarLint with SonarQube (cloud edition) to see if it works fine but I'm not able to setup the connection to the sonarqube cloud server.

After installing SonarLint on VS2015 on the connect screen popup I'm adding:
- SonarQube Server: https://sonarqube.com or https://sonarcloud.io
- Username/token: "I'm adding the token generated on the sonarcloud web site"
- Password: "blank"

Then it popups an dialog window  "Select the organisation" and I type my user name and the autocomplete finds it and when I hit ok the connection fails.

Looking at the "SonarLint" output window the following error appears:

Connecting to SonarQube server: https://sonarcloud.io/
Connecting to SonarQube server: Validating credentials
Connecting to SonarQube server: Retrieving organizations
Connecting to SonarQube server: Detecting server plugins
   Discovered a supported plugin: Language: 'C#', Minimum version: '5.0'
   Discovered a supported plugin: Language: 'VB.NET', Minimum version: '3.0'
Connecting to SonarQube server: Retrieving projects
SonarQube request failed: Response status code does not indicate success: 400 ().
Connecting to SonarQube server: Failed

What can I do to fix this?

Looking forward,
Nuno

mike.k...@googlemail.com

unread,
Jun 19, 2017, 1:09:11 PM6/19/17
to SonarLint, nunol...@gmail.com
I have the same issue. Did you find a solution for it?

janos....@sonarsource.com

unread,
Jun 20, 2017, 9:44:26 AM6/20/17
to SonarLint, nunol...@gmail.com, mike.k...@googlemail.com
Hi,

Thank you for reporting this, indeed there seems to be a bug when using organizations in SonarLint for VisualStudio. We will release a fix ASAP. We may also have an exceptional workaround at server-side, I will update this thread when there's an update.

Cheers,
Janos

Mike Kaufmann

unread,
Jun 20, 2017, 11:30:44 AM6/20/17
to janos....@sonarsource.com, nunol...@gmail.com, SonarLint
Great, thanks for the update! 

valeri....@sonarsource.com

unread,
Jun 21, 2017, 8:02:03 AM6/21/17
to SonarLint, janos....@sonarsource.com, nunol...@gmail.com, mike.k...@googlemail.com
Hi guys,

I believe we fixed the problem, can you confirm by downloading and installing SonarLint for Visual Studio from here:

The only change is:

If everything is alright, tomorrow we will publish the same binaries to the Visual Studio marketplace.

Thanks in advance,
The .Net team

Mike Kaufmann

unread,
Jun 21, 2017, 9:00:37 AM6/21/17
to valeri....@sonarsource.com, nunol...@gmail.com, janos....@sonarsource.com, SonarLint
Hi.

Awesome! Too late for my talk - but it's good that I can point out, that this is fixed. Will try it tomorrow.

Thanks.
Reply all
Reply to author
Forward
0 new messages