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

Cannot read properties of undefined (reading 'trim) #1464

Closed
Tracked by #1465 ...
jplummer01 opened this issue Feb 17, 2022 · 4 comments
Closed
Tracked by #1465 ...

Cannot read properties of undefined (reading 'trim) #1464

jplummer01 opened this issue Feb 17, 2022 · 4 comments

Comments

@jplummer01
Copy link

Does this occur consistently? Yes
Repro steps:
Expand Machine Learning Node and attempt to connect to compute instance. Error is "Cannot read properties of undefined (reading 'trim') and same error when chossing default subscription

Action: azureAccount.onSubscriptionsChanged
Error type: TypeError
Error Message: Cannot read properties of undefined (reading 'trim')

Version: 0.6.28
OS: win32
OS Release: 10.0.22543
Product: Visual Studio Code - Insiders
Product Version: 1.65.0-insider
Language: en

Call Stack
extension.bundle.js:2:168982extension.bundle.js:2:168982
Function.StringUtils.trimArrayEntries extension.bundle.js:2:168956
new ScopeSet extension.bundle.js:2:185274
SilentFlowClient.<anonymous> extension.bundle.js:2:247421
step extension.bundle.js:2:147853
Object.next extension.bundle.js:2:147958
extension.bundle.js:2:146868extension.bundle.js:2:146868
__awaiter extension.bundle.js:2:146554
SilentFlowClient.acquireCachedToken extension.bundle.js:2:246780
SilentFlowClient.<anonymous> extension.bundle.js:2:246481
step extension.bundle.js:2:147853
Object.next extension.bundle.js:2:147958
extension.bundle.js:2:146868extension.bundle.js:2:146868
__awaiter extension.bundle.js:2:146554
SilentFlowClient.acquireToken extension.bundle.js:2:246337
PublicClientApplication.acquireTokenSilent extension.bundle.js:2:296828
@sevillal
Copy link
Contributor

@jplummer01 Thanks for opening this issue.

  • Could you please let us know what version of the Azure Account extension are you using?
  • After seeing the error, are you able to connect to the compute instance or interact with the tree view?

@sevillal
Copy link
Contributor

Update:
We have filed an issue in the Azure Account repo about this: microsoft/vscode-azure-account#457

As a workaround downgrading to previous version of Azure Account extension should help.

@jplummer01
Copy link
Author

jplummer01 commented Mar 1, 2022

Azure Machine Learning v0.6.28
Azure Machine Learning - Remote v0.7.0
Azure Machine Learning - Inference v0.1.0
Azure Account v0.10.0

@jplummer01
Copy link
Author

confirmed that downgrading to Azure Account extension v0.9.11 worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants