microsoft / azuredatastudio

Azure Data Studio is a data management and development tool with connectivity to popular cloud and on-premises databases. Azure Data Studio supports Windows, macOS, and Linux, with immediate capability to connect to Azure SQL and SQL Server. Browse the extension library for more database support options including MySQL, PostgreSQL, and MongoDB.
https://learn.microsoft.com/sql/azure-data-studio
MIT License
7.58k stars 908 forks source link

Unable to add Account #25990

Open bs70916 opened 1 month ago

bs70916 commented 1 month ago

Type: Bug

I am unable to Add Linked account.

I click the User button (Bottom Left)

I get "Linked accounts" page with "Add Account" button

I clicked Add Account button, and get error message

"Error adding account" "Error: error"

Azure Data Studio version: azuredatastudio 1.44.0 (31bee67f005648cdc9186f28ef39b4f1d6585e0f, 2023-05-19T16:53:04.348Z) OS version: Windows_NT x64 10.0.19045 Restricted Mode: No Preview Features: Enabled Modes:

System Info |Item|Value| |---|---| |CPUs|13th Gen Intel(R) Core(TM) i7-1370P (14 x 2189)| |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
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
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|31.66GB (15.56GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions: none
github-actions[bot] commented 3 weeks ago

We need more info to debug your particular 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.

  1. First open the Settings page, find the Mssql: Tracing Level setting and change that to All then restart Azure Data Studio.
  2. Open command palette (Click View -> Command Palette) and run the command Developer: Set Log Level... and set the level to Trace.
  3. Run the repro scenarios.
  4. Collect the following logs:

    Console Logs

    • Open Developer Tools (Help -> Toggle Developer Tools)
    • Click the Console tab
    • Click in the log area and select all text (CTRL+A)
    • Save this text into a file named console.log and attach it to this issue.
    • Developer Tools can be closed via Help -> Toggle Developer Tools

    Application Logs

    • Open command palette (Click View -> Command Palette)
    • Run the command: Developer: Open Logs Folder
    • This will open the log folder locally. Please zip up this folder and attach it to the issue.
  5. Now you can revert the Log/Tracing levels changes made in step 1 and step 2.
lewis-sanchez commented 3 weeks ago

Hi @bs70916, I was able to add both my personal and work accounts to Azure Data Studio. Could you please attach application and console logs, so that I can find the cause of the issue you're experiencing? Thank you!

lewis-sanchez commented 3 weeks ago

@bs70916, are you using a proxy? If you are using a proxy, could you turn these two settings off, add an account, and then turn these settings back on right after? Image

If turning off the two settings doesn't work, then could you share the output in the output window (via view -> output) and change the dropdown to Azure Accounts, then going through the process of adding an account again to capture the output.

This is what the output window looks like with Azure Accounts selected: Image

hmrc87 commented 2 weeks ago

Same problem on Mac OS with 1.49.1. @lewis-sanchez it is not helping. https://github.com/microsoft/azuredatastudio/issues/25986 on Windows has the same issue

hmrc87 commented 2 weeks ago

It is working when the HTTPS_PROXY and https_proxy variable is NOT set. See this issue from axios https://github.com/axios/axios/issues/3384

@lewis-sanchez