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
324 stars 94 forks source link

continuously asks for sign-in #1602

Closed DeltaCharlieAlpha closed 1 month ago

DeltaCharlieAlpha commented 2 years ago

Does this occur consistently? YES Repro steps:

  1. Open VSCode
  2. Open Azure Extension
  3. Expand Machine Learning Tab
  4. Sign in prompt appears - "The Azure Machine Learning extension needs you to sign into Azure. Please sign in to use Azure ML Extension."
  5. Click "Sign In"
  6. Select proper account from "Pick an Account" window to sign into account
  7. Notice: "You are signed in now and can close this window"
  8. Right Click on compute target under Machine Learning tab
  9. select Connect
  10. Notice, error message appears (see details below) "Unknown Error retrieving subscriptions from Azure Account extension"
  11. Notice - new Sign-in pop up appears.
  12. Clicking Sign In on new sign in dialog repeats steps 10,11, and 12 infinitely. Clicking cancel dismisses, and extension seems connected to compute.

Action: azureAccount.onSessionsChanged Error type: 123 Error Message: Unknown Error retrieving susbcriptions from Azure Account extension.

Version: 0.12.0 OS: linux OS Release: 5.4.0-1056-azure Product: Visual Studio Code Product Version: 1.68.1 Language: en

Call Stack ``` _. extension.js:2:2329781 s extension.js:2:2326649 ```
shsuman commented 2 years ago

Looks related to https://github.com/microsoft/vscode-azureml/issues/122.

@tbombach Can you please take a look ?

shsuman commented 2 years ago

@DeltaCharlieAlpha We have shipped a fix for this issue. Can you please upgrade the extension to 0.18.0 and let us know if its fixed for you?

DeltaCharlieAlpha commented 2 years ago

This seems to have gotten worse. Before when I got in the loop, I could authenticate a few times and then cancel. Now I still get the loop but if I cancel, I can't access my remote compute.

tbombach commented 2 years ago

@DeltaCharlieAlpha I'm sorry you're running into this issue. Thank you for listing the steps that you took when you encountered the problem - I'll try this steps and see if I can reproduce the same behavior.

shsuman commented 1 month ago

@DeltaCharlieAlpha Are you still facing this issue ?

shsuman commented 1 month ago

Closing because of inactivity. Please reopen if need be :)