Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-152

Unable to connect to MongoDB with authenticate enabled

    • Type: Icon: Task Task
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.1
    • Component/s: asyncio
    • None
    • Environment:
      MongoDB 3.4

      I am tryning to run a offline script using ASyncIOMotorClient on MongoDB 3.4 with autentication enabled, but getting following error

      pymongo.errors.OperationFailure: not authorized on Dbname to execute command

      { distinct: "collectionname", key: "Columnname" }

      while running the same query in debugging mode runs fine

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            tishakariya@gmail.com tisha Kariya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: