hendrapaiton / mandalika

Python Flask Restful JWT Authentication with MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Got error on creating user

xakiy opened this issue · comments

I got error when initializing mandalika
raise OperationFailure(msg % errmsg, code, response) pymongo.errors.OperationFailure: not authorized on test to execute command { createIndexes: "user", indexes: [ { key: { username: 1 }, background: false, unique: true, sparse: false, name: "username_1" } ], lsid: { id: UUID("0caea031-a92c-40e2-b044-d4ca04041e07") }, $db: "test", $readPreference: { mode: "primary" } }
any clue why it is happen?