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

Socket hang up when trying to login to my Azure account #25716

Open davidshen84 opened 4 months ago

davidshen84 commented 4 months ago

Steps to Reproduce:

  1. Install Azure Data Studio
  2. Login with my Azure account

After I selected my account from the browser, I got a message saying "socket hang up" on the browser and in the Data Studio.

I have tried to re-install the application and delete AppData/Roaming/azuredatastudio folder.

In the browser, the URL looks like:

http://127.0.0.1:56969/callback?code=...&state=...&session_state=...

The port number changes every time I restart the Data Studio.

Does this issue occur when all extensions are disabled?: Yes

cssuh commented 4 months ago

Hi @davidshen84 can you please attach logs and also check if there are any errors in the Developer Tools Console of ADS? (F12 -> Console)

github-actions[bot] commented 4 months ago

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

Additionally, please review known issues and their resolutions that could be helpful: Common Azure Authentication Issues

davidshen84 commented 2 months ago

@cssuh , sorry for the late reply.

F12 does nothing for me. So I tried the Toggle Developer Tools from the Help menu. It has tons of warning messages. When I try to do the login, I got only one error message.

ERR Error while adding account: Error: socket hang up

The Azure Accounts.log file content is almost the same thing.

I also tried to reinstall the app, but not helping.

Version: 1.49.1 (user setup)
Commit: 2f696aa95a13ccabd7e0a4431d1d759e3a7b8cfd
Date: 2024-08-13T18:12:38.831Z
VS Code: 1.82.0
Electron: 25.9.8
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045

image 1-Azure Accounts.log