microsoft / vscode-tools-for-ai

Azure Machine Learning for Visual Studio Code, previously called Visual Studio Code Tools for AI, is an extension to easily build, train, and deploy machine learning models to the cloud or the edge with Azure Machine Learning service.
Other
321 stars 91 forks source link

VSCode web not loading from 'Edit in VSCode (Web)' option inside Azure machine Learning Studio notebook #2269

Open danielcmm opened 5 months ago

danielcmm commented 5 months ago

Does this occur consistently? Yes Repro steps:

  1. Click on the option Edit in VSCode (Web)
  2. Authenticate
  3. Error below appears

Error message: Failed to authenticate. Error type: AuthError

Version: 0.44.0 Browser Name: Chrome Browser Version: 120.0.0.0 OS: Windows 10 64-bit Product: Visual Studio Code Product Version: 1.85.2 Language: pt-br

Call Stack ``` kt.getSession webOpener.js:2:706485 https:/webOpener.js:2:785509 Ar.measure webOpener.js:2:792625 Tr.getSession webOpener.js:2:785467 Tr.create webOpener.js:2:785203 $n.resolve webOpener.js:2:742078 https:/webOpener.js:2:772423 Ar.measure webOpener.js:2:792625 Lr.doRoute webOpener.js:2:772380 Module.Ir webOpener.js:2:793228 ```
sevillal commented 1 week ago

Hi @danielcmm, thanks for filing this issue.

This is a known VS Code issue, but we are currently testing the solution provided by VS Code team, your input is very valuable to improve this scenario. Could you please try the following and report if it fixed your issue?

  1. Go to Azure ML Studio and open the Compute tab
  2. Right click on the VS Code (Web) link of your compute instance and click Copy link
  3. Open a new browser tab
  4. Paste the link and add &useMsal=true at the end of the URL
  5. Hit enter
  6. Enter your credentials if needed and report if you are able to connect or if you see a different error