Hi,
Have you try to uncheck both System Certificates and Proxy Strict SSL and try to add account again? Mine is working, after successfully add an account, don't forget to enable both settings.
I hope it helps.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Getting the below error while trying to add account in azure data studio error.jpg
Hi @Bittu Bhowmick Thanks for posting your question in Microsoft Q&A forum
The error message you shared did not help much to understand, can you please share the steps you followed to better assist you?
Regards
Geetha
I just tried to add my organisation email account to Azure Data Studio and i got this message. The error message is attached(error.jpg)
Hi @Bittu Bhowmick - can you please share the version of Azure Data Studio that you are using (latest stable release is 1.45.1? Also, you're adding an Azure account that you use to login to the Azure portal, correct? Would you be able to open the output window (via View -> Output) and change the drop down to Azure Accounts, and then recreate the issue, and share the output from the window here? Thanks.
The version information of Azure Data Studio is as below:
Version: 1.45.1
Commit: 88c21b1725a3e79440027bdb7b5a55fb036be0e2
Date: 2023-08-03T00:42:36.656Z
VS Code: 1.79.2
Electron: 22.3.14
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin x64 22.6.0
The error info is as below:
"originalException": {
"errorCode": "endpoints_resolution_error",
"errorMessage": "Error: could not resolve endpoints. Please check network and try again. Detail: ClientAuthError: openid_config_error: Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints. Attempted to retrieve endpoints from: https://undefined/organizations/v2.0/.well-known/openid-configuration",
"subError": "",
"name": "ClientAuthError"
}
} - []
@Bittu Bhowmick And to confirm, you have successfully logged into the Azure Portal (in a browser) on this same machine? If you are not able to login through the Azure Portal, please try clearing the cache and cookies for the browser. This does not appear to be an ADS error, but an authentication error (hence my request to confirm you can login to the portal on the same machine). Thanks.
Hi,
Thanks for the reply. Yes, I am able to login to Azure Portal on the same machine without any difficulty. But again to be on the safer side, I cleared all my cache and browsing data and tried once again but it threw the same error as below:
[Error]: [Mon, 28 Aug 2023 05:25:29 GMT] : @azure/msal-node@1.16.0 : Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
Error: Error
Error Description: Error: certificate has expired - []
[Error]: An error occurred in MSAL library when requesting auth code URL. For more detailed information on error, please check 'Azure Accounts' output pane.
- []
[Error]: Login failed: Error: An error occurred in MSAL library when requesting auth code URL. For more detailed information on error, please check 'Azure Accounts' output pane.
endpoints_resolution_error: Error: could not resolve endpoints. Please check network and try again. Detail: ClientAuthError: openid_config_error: Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints. Attempted to retrieve endpoints from: https://undefined/organizations/v2.0/.well-known/openid-configuration - []
[Error]: {
"originalMessage": "endpoints_resolution_error: Error: could not resolve endpoints. Please check network and try again. Detail: ClientAuthError: openid_config_error: Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints. Attempted to retrieve endpoints from: https://undefined/organizations/v2.0/.well-known/openid-configuration",
"originalException": {
"errorCode": "endpoints_resolution_error",
"errorMessage": "Error: could not resolve endpoints. Please check network and try again. Detail: ClientAuthError: openid_config_error: Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints. Attempted to retrieve endpoints from: https://undefined/organizations/v2.0/.well-known/openid-configuration",
"subError": "",
"name": "ClientAuthError"
}
} - []
@Bittu Bhowmick Thank you for clarifying and testing. If you could please log an issue in the ADS GitHub repo (https://github.com/microsoft/azuredatastudio/issues) we can engage one of the engineers. Please note there may be additional logs to capture, etc., but they can better assist with getting it resolved.
IDK what's the issue but I can see the New Issue button is disabled for me. Can you do the needful to raise the issue?
Are you logged in to GitHub? Creating an account is free if you don't have one.
Yes I am logged into GitHub but its not allowing me to create an issue
What happens if you go to Help -> Report Issue within Azure Data Studio? Are you able to log the issue that way?
My Org has actually blocked Public GitHub access and so I am unable to raise it from the App also. It throws error-Access Denied. I would be highly glad if you could do it on behalf of me.
@Bittu Bhowmick I spoke with engineering - we had another customer that encountered the same error message, and we've added a fix in the latest Insider build. Could you give that a try and let me know if the problem still exists? https://github.com/microsoft/azuredatastudio#try-out-the-latest-insiders-build-from-main-branch
Unfortunately, its the same error once again. I tried the Intel Chip Installer for MaC.
Error: An error occurred in MSAL library when requesting auth code URL. For more detailed information on error, please check 'Azure Accounts' output pane.
endpoints_resolution_error: Error: could not resolve endpoints. Please check network and try again. Detail: ClientAuthError: openid_config_error: Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints. Attempted to retrieve endpoints from: https://undefined/organizations/v2.0/.well-known/openid-configuration
@Bittu Bhowmick You said "tried the Intel Chip Installer for macOS". What installer did you use previously? I can open an issue in GitHub on your behalf, but we'll have to figure out an alternative method for communicating since you are not permitted access. But I would like to confirm what installer(s) you have tried. Thanks.
Same Intel Chip installer since I am using MaC with Intel Chip.
Any update on this team?
Hi @Bittu Bhowmick, I can create an issue on your behalf in GitHub. Can you share the values you have for proxy settings so I can include that in the issue? Thanks.
Hi @Bittu Bhowmick - following up to see if you're able to provide the requested information so I can create an issue for you. Thanks.
The solution provided by wulung triyanto worked. Thanks
Hi,
Have you try to uncheck both System Certificates and Proxy Strict SSL and try to add account again? Mine is working, after successfully add an account, don't forget to enable both settings.
I hope it helps.