Step:
1. Connect to Azure Cosmos DB with SSL option "System CA / Atlas Deployment"
2. Compass show loading DB icon on the left top of the program and console show error.
Uncaught TypeError: Cannot read property 'inheritedPrivileges' of undefined
at Object.getResourcesWithActions (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:71)
at listDatabases (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:182)
at runTask (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:1618)
at C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:1558
at processQueue (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:1568)
at taskComplete (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:1587)
at C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:1611
at C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:958
at C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:316
at handleCallback (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:120)
Cause:
Function "getUserInfo", in file "node_modules\mongodb-data-service\lib\instance-detail-helper.js" line 316: done(null, _res.users[0]);, should support when _res.users is empty array.
I found it got empty array when connect to Azure Cosmos and it was error when call function "getResourcesWithActions" in "node_modules\mongodb-security\index.js" line 71: var privileges = userOrRole.inheritedPrivileges; while userOrRole was undefined but it try to get userOrRole.inheritedPrivileges.
Note:
He has same problem with me.
https://social.msdn.microsoft.com/Forums/azure/en-US/a38d9830-1f3f-4378-91d3-083a8b7e8631/connect-to-cosmos-db-by-compass?forum=AzureDocumentDB