-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
502 error code after update to 1.20.1 #17772
Comments
Hi @EdCallahan It seems your proxy is denying the connection. Does removing proxy settings in settings.json help? |
Hi @cheenamalhotra, I appreciate your responsiveness to this issue. I can download the ZIP file fine via my proxy, using my web browser for instance. So I don't think the proxy is denying the connection. I think the extension is having a hard time determining the correct proxy settings, or otherwise isn't using the proxy. I've been doing some debugging. The problem exists when I have the following line in my settings.json:
When I remove that line the problem goes away. For your reference my other proxy settings in settings.json are (IP address partially masked):
I find it surprising, but removing all the proxy statements from my json file does alleviate the problem without any ill effect I've noticed so far. It appears that when mssql is forced to use the settings.json for proxy information it fails, but succeeds when relying on the OS? The settings in both look identical to my eye. |
Thanks for validating @EdCallahan cc @cssuh for consideration |
This is a continuation of the getProxyAgentOptions error error I previously reported.
I was able to get version 1.20.0 working using the advise at #17755 (comment)
After VSCode updated the extension to 1.20.1 today, when I try to establish a SQL Connection I now get a 502 error:
Manually downloading https://github.com/Microsoft/sqltoolsservice/releases/download/4.8.1.2/microsoft.sqltools.servicelayer-win-x64-net7.0.zip and extracting the content to C:\Users\<username>\.vscode\extensions\ms-mssql.mssql-1.20.1\sqltoolsservice\4.8.1.2\Windows and restarting VSCode worked around the problem
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: