This error typically happens when the HTTP client tries to parse as JSON a response that is definitely not JSON - usually, it’s a HTML page with the proxy authentication error.
This documentation page explains the properties you can set; you can check that there are no mistakes.
I have used same setting like 2 weeks ago but switched to different VDI with windows 11 instead of windows 10. And another difference is sonarlint extension version it was 4.4.2 and 4.5.0.
By chance, do you know what kind of authentication your proxy uses?
As far as I can tell, there was a recent change in how SonarLint for VSCode handles proxy authentication. I suspect that the previous implementation was compatible with “transparent” authentication schemes (e.g. NTLM), but the new one is not.
Could you maybe check with an older version of the extension, e.g. 4.3.0? It should be the last version that used the previous proxy authentication implementation.
Thanks for confirming that reverting to the older version restores connectivity.
This is not an ideal situation, we definitely don’t want you to be stuck with this old version.
Web proxies are capricious beasts, between the different protocols and auth mechanisms, and it would be impractical for us to maintain an infrastructure to test all different combinations.
In this case, I would be curious to see what happens if, instead of passing the -Dhttp(s).proxyXxx=zzz properties, we use -Djava.net.useSystemProxies=true and let the JVM rely on the system-configured proxy.
Would you be willing to help us investigate and try this with the latest version? Thanks!
This setting is working with latest 4.5.1 sonarlint extension.
On Windows 11 we don’t have http_proxy or https_proxy env variables set but in system network settings we have pac file for proxy configuration