-
Notifications
You must be signed in to change notification settings - Fork 909
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
Connection Error: Failed to get token #21874
Comments
We would recommend you to please update ADS to latest v1.41.1 as many improvements have been made in this area. |
I am too getting this error. I was happily connecting myself a few days back before I applied the update. My current ADS spec reads as: Version: 1.41.2 (system setup) I am able to connect with Azure AD credentials on MS Sql Server Management Studio 18 but not ADS. |
Can you quickly check if changing back the below setting "Azure: Authentication Library" to ADAL makes a difference? Also please gather Azure logs and upload here to be able to identify error that occurred. |
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.
|
Switching to ADAL works in my case. |
I was having the same issue also. Changing Azure Authentication Library to ADAL fixed my issue as well. If you need logs with the setting set to MSAL please let me know and I can provide. The original post mentioned they were unable to reproduce. For me, any connection using MFA generated this error and I can readily reproduce it. |
Azure Account Logs would help us understand the root cause. Please gather using information above and attach the same. |
I was able to readily reproduce, but since switching from MSAL to ADAL and then back to MSAL to send you the logs I'm no longer able to reproduce the error. I will keep on MSAL authentication and see if this pops up again. If, and hopefully when, it does I will post logs here. |
Issue Type: Bug
Connection Error: Failed to get token
The error above randomly pops up, I am unable to reproduce it.
I noticed that re-authenticating to Azure solves the issue, although I didn't get the notification to re-authenticate, just a vague message that failed to get token.
Azure Data Studio version: azuredatastudio 1.33.1 (0b9ef71, 2021-11-04T17:45:15.872Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
The text was updated successfully, but these errors were encountered: