Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

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

Open
dandv opened this issue Jun 21, 2019 · 0 comments
Open

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

dandv opened this issue Jun 21, 2019 · 0 comments

Comments

@dandv
Copy link

dandv commented Jun 21, 2019

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",
  ...
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant