(407) Proxy Authentication Required when Migrating Configuration or adding Connection

Please provide

  • Operating system: Windows 11
  • Visual Studio version: 2022 Community Edition
  • SonarQube for Visual Studio plugin version: 8.19.0.13191
  • Programming language you’re coding in: C#
  • Is connected mode used:
    • SonarQube Cloud

And a thorough description of the problem / question:
When trying to migrate configuration I get http 407 errors:

[MigrationWizardXaml] Error during migration: System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.

Also when trying to set up Connected mode:

[DEBUG] [ThreadId 20] [SLCore] [sonarlint > SonarLint Server RPC request executor] GET 407 https://sonarcloud.io/api/system/status | response time=15ms

How and where can I configure the authentication for the proxy, or is there some other way this can be fixed?

Hey there.

Visual Studio and its extensions should be using system proxy settings (SLVS-1694). Can you make make sure your Windows proxy settings are set up, including credentials. You might also need to make sure you’re running Visual Studio as the user who is authorized to access the proxy since proxy credentials are often associated with specific user accounts.