Skip to content
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

Unable to connect AML compute instance from Visual Studio Code (new error) #2037

Closed
gf-eaton opened this issue May 10, 2023 · 7 comments
Closed
Assignees
Labels
area-remote-desktop customer-issue Problem issues related to triaged customer feedback.

Comments

@gf-eaton
Copy link

gf-eaton commented May 10, 2023

Does this occur consistently? Yes, since this week. 5 days ago.
Repro steps:

  1. right click connect or connect using new window
  2. error will be seen Failed to connect to the remote extension host server (Error: request to https://gf-a8mv2.eastus.instances.azureml.ms/api/terminals?1683743256805 failed, reason: self signed certificate in certificate chain)

Action: Resolver.resolve
Error type: 70
Error Message: request to redacted:url failed, reason: self signed certificate in certificate chain

Version: 0.28.1
OS: win32
OS Release: 10.0.19044
Product: Visual Studio Code
Product Version: 1.78.1
Language: en

Call Stack
s extension.js:2:1981706
extension.js:2:2007388extension.js:2:2007388
@gf-eaton
Copy link
Author

#2033 Same error

@gf-eaton
Copy link
Author

In Visual Studio Code : Right click start and stop compute instance works...
In the other hand Connect or Connect In new Window are producing the error.

I use Visual Studio Code everyday, this is new error, was not doing this last week ...

@alexweininger
Copy link
Member

A change released in the VS Code 1.78 April release breaks loading OS certificates on Windows. Meaning self-signed certificates and CA certificates picked up from a network proxy are currently broken. See microsoft/vscode#181404 for more details.

It looks like VS Code is planning to include a fix in the 1.78.2 release (April recovery 2).

Until that is released, you can downgrade to VS Code version 1.77. Also, other users have had success installing the win-ca extension, which makes Trusted Root Certificates on Windows available to VS Code extensions.

Another workaround if your CA certificate is provided by a network proxy is to configure the proxy related settings in VS Code.

@sevillal sevillal self-assigned this May 11, 2023
@sevillal sevillal added customer-issue Problem issues related to triaged customer feedback. area-remote-desktop and removed triage-needed labels May 11, 2023
@sevillal
Copy link
Contributor

@alexweininger thank for pointing that out.

@gf-eaton could you please try downgrading or installing the win-ca extension and let me know it that help.

@gf-eaton
Copy link
Author

gf-eaton commented May 11, 2023

Hello all,

@sevillal Thanks for the replies.
@alexweininger Thanks it confirms our founding's.

Unfortunate

win-ca is not resolving the issue.
Here is the popup message in the lower corner : request to https://gf-ds12v2.eastus.instances.azureml.ms/api/terminals?1683806412459 failed, reason: self signed certificate in certificate chain

Not an option

As per downgrading Visual Studio Code we cannot do that now.

Solution 💯

two things to do : We are now using the proxy workaround :

  • in Visual Studio Code > Settings > Proxy : set the proxy similar to http://myproxy.corpo.net:8080
    • look in your git bash settings for info
  • in Visual Studio Code > Settings > Proxy SSL check is OFF

@sevillal
Copy link
Contributor

@gf-eaton VS Code just released version 1.78.2 which should fix the certificates issue, could you please update VS Code (Help > Check for Updates...) and retry the connection.

@gf-eaton
Copy link
Author

@sevillal 1.78.2 is now functional, fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-remote-desktop customer-issue Problem issues related to triaged customer feedback.
Projects
None yet
Development

No branches or pull requests

3 participants