SouthbankSoftware / dbkoda

State of the art MongoDB IDE
https://www.dbkoda.com
GNU Affero General Public License v3.0
870 stars 43 forks source link

Support read-only connections - JSON parsing now fails #42

Open dandv opened 5 years ago

dandv commented 5 years ago

I have a read-only connection to reporting DB, and trying to show .find() results as JSON fails, probably because the output includes the profile command failing:

Error: profile command failed: {
  "operationTime": Timestamp(1561102597, 1),
  "ok": 0,
  "errmsg": "not authorized ... to execute command { profile: -1.0, ... }",
  "code": 13,
  "codeName": "Unauthorized",
  ...
}