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 add Azure Account #21710

Closed
achambery opened this issue Jan 23, 2023 · 7 comments
Closed

Unable to add Azure Account #21710

achambery opened this issue Jan 23, 2023 · 7 comments
Assignees
Labels
Area - Azure Bug Needs Logs - Azure Size: S For a small complexity issue - only when fixed with a PR Triage: Done

Comments

@achambery
Copy link

achambery commented Jan 23, 2023

Issue Type: Bug

  1. Click "Add Account" Button under "Linked accounts" sub-page
  2. Sign in to Azure account in browser using username/password

After following these steps, browser gets stuck loading while I can view the following error pop-up in Console logs:

ERR Cannot read properties of undefined (reading 'accountType'): TypeError: Cannot read properties of undefined (reading 'accountType')
at kl.renderElement (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:881:69526)
at kl.renderElement (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:881:70180)
at U.renderElement (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:269:1826)
at C.insertItemInDOM (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:244:19186)
at C._splice (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:244:14963)
at C.splice (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:244:13182)
at vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:68:67876
at Array.forEach ()
at t.splice (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:68:67863)
at vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:269:8601
at y.bufferEvents (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:136:5181)
at Q.splice (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:269:8568)
at W.updateAccounts (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:4020:60672)
at z.updateProviderAccounts (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:4020:66500)
at vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:4020:61965
at l.invoke (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:136:145)
at s.deliver (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:136:2265)
at r.fire (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:136:1843)
at vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:877:15926
at l.invoke (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:136:145)
at s.deliver (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:136:2265)
at r.fire (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:136:1843)
at Du.fireAccountListUpdate (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:4020:75075)
at vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:4020:71192
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Ko.run (vscode-file://vscode-app/c:/Users/{USER}/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:881:41278)

Azure Data Studio version: azuredatastudio 1.40.2 (6613846, 2022-12-22T22:17:02.658Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No
Preview Features: Enabled

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2712)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.90GB (20.02GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (4)
Extension Author (truncated) Version
azcli Mic 1.7.0
azuremonitor Mic 0.1.9
kusto Mic 0.5.8
powershell ms- 2022.12.1
@github-actions
Copy link

We need more info to debug your Azure Active Directory issue. If you could attach your logs to the issue (ensure no private data is in them), it would help us fix the issue much faster.

  • In the settings menu, find the setting titled Azure: Logging Level and select the Verbose option
  • Run the process that produces your error
  • Open command palette (Click View -> Command Palette)
  • Run the command: Developer: Open Logs Folder
  • Follow this path to find the Azure Accounts log file: [default log folder]/exthost1/output_logging_[earliest timestamp]/#-Azure Acounts.log
  • Please attach the Azure-Accounts.log file to the issue.

@achambery
Copy link
Author

1-Azure Accounts.log

Even with Verbose logging this does not appear to be very helpful. I have tried using Chrome, Firefox, and Edge for completing login but they all have the same result.

@achambery
Copy link
Author

I have updated to the latest version of AzureDataStudio (1.41.1) and re-attempted to link my Azure account. The error still is happening but now an error window pops up and there is more information in the Azure debug logs (see attached)
image
1-Azure Accounts-public.log

@nickylang
Copy link

Same issue here, Mac M2 Ventura

@mdiianni
Copy link

mdiianni commented Mar 3, 2023

Same problem today on MacOs Ventura 13 Intel Core

@mdiianni
Copy link

mdiianni commented Mar 3, 2023

Actually conducted the cleanup from the CLI and worked fine after removing and reinstalling.

@cheenamalhotra cheenamalhotra added the Size: S For a small complexity issue - only when fixed with a PR label Mar 7, 2023
@cheenamalhotra cheenamalhotra self-assigned this Mar 7, 2023
@cheenamalhotra
Copy link
Member

Issue has been fixed with #22140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area - Azure Bug Needs Logs - Azure Size: S For a small complexity issue - only when fixed with a PR Triage: Done
Projects
None yet
Development

No branches or pull requests

4 participants