Please provide
Win10
Visual Studio 17.10.2
- SonarLint plugin version: 8.0.0.92083
- Programming language you’re coding in: c#
- Is connected mode used: Yes
- Connected to SonarCloud or SonarQube (and which version): * Enterprise Edition Version 10.4.1 (build 88267
And a thorough description of the problem / question:
I have 403 errors when trying to use SonarLint
[Taint] Failed to synchronize taint vulnerabilities with the connected server: System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at SonarQube.Client.Requests.RequestBase`1.<InvokeAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarQube.Client.SonarQubeService.<InvokeUncheckedRequestAsync>d__17`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarLint.VisualStudio.Infrastructure.VS.ThreadHandling.<>c__DisplayClass6_0`1.<<RunOnBackgroundThread>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarLint.VisualStudio.Infrastructure.VS.ThreadHandling.<RunOnBackgroundThread>d__6`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarLint.VisualStudio.Integration.MefServices.MefSonarQubeService.<InvokeUncheckedRequestAsync>d__3`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarQube.Client.SonarQubeService.<GetSourceCodeAsync>d__44.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at SonarQube.Client.Helpers.SecondaryLocationHashUpdater.<UpdateHashesAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarQube.Client.SonarQubeService.<GetTaintVulnerabilitiesAsync>d__41.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarLint.VisualStudio.IssueVisualization.Security.Taint.TaintIssuesSynchronizer.<SynchronizeWithServer>d__10.MoveNext().
[ConnectedMode/BranchMapping] Matching Sonar server branch: develop
[ConnectedMode/BranchMapping] Closest Sonar server branch: develop
[ConnectedMode/BranchMapping] Matching Sonar server branch: develop
[ConnectedMode/BranchMapping] Closest Sonar server branch: develop
[ServerIssueStore] Raising change event...
[Hotpots] Fetch operation failed: Response status code does not indicate success: 403 ().
The execute analysis permissions is ticked. I don’t know how to use a token or my creds to connect to the server. Or how do I use a “non-connected” mode. I’d like to replicate the issues appearing in the SonarQube server