Azure / azure-kusto-node

JS SDK for the Kusto service
MIT License
53 stars 39 forks source link

Cannot read properties of undefined (reading 'AadAuthorityUri') #301

Closed AisseMTT closed 6 months ago

AisseMTT commented 8 months ago

Describe the bug

When trying to log in using various methods, I am receiving an error message: TypeError: Cannot read properties of undefined (reading 'AadAuthorityUri').

To Reproduce const kcsb = KustoConnectionStringBuilder.withUserManagedIdentity(clusterUri, Constants.ExperimentationToolsIdentityClientId, "microsoft.com"); const response = await kcsb.execute(db, query); return response; Expected behavior I should get some sort of 400 error if unauthorized.

Screenshots image

Setup (please complete the following information):

Browser Setup (please complete the following information):

Desktop (please complete the following information):

ohadbitt commented 8 months ago

Acknowledged Quick workaround for now(works when cloudSettings fails): CloudSettings.cloudCache["https://kusto.aria.microsoft.com/"] = CloudSettings.defaultCloudInfo

AsafMah commented 7 months ago

Should be fixed with v6.0.1, please let us know the results.

AsafMah commented 6 months ago

Closing for lack of comment.