Open sbj6363 opened 6 years ago
I steup mongo-express and run it! in config.js write more authdb . after run it show error
{ MongoError: not authorized on backend to execute command { listCollections: true, filter: {}, cursor: {} } at Function.MongoError.create (/Library/WebServer/Documents/koudailicai/mongo-express/node_modules/mongodb-core/lib/error.js:31:11) at queryCallback (/Library/WebServer/Documents/koudailicai/mongo-express/node_modules/mongodb-core/lib/cursor.js:212:36) at /Library/WebServer/Documents/koudailicai/mongo-express/node_modules/mongodb-core/lib/connection/pool.js:455:18 at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickCallback (internal/process/next_tick.js:180:9) name: 'MongoError', message: 'not authorized on backend to execute command { listCollections: true, filter: {}, cursor: {} }', ok: 0, errmsg: 'not authorized on backend to execute command { listCollections: true, filter: {}, cursor: {} }', code: 13, codeName: 'Unauthorized' }
I steup mongo-express and run it! in config.js write more authdb . after run it show error
{ MongoError: not authorized on backend to execute command { listCollections: true, filter: {}, cursor: {} } at Function.MongoError.create (/Library/WebServer/Documents/koudailicai/mongo-express/node_modules/mongodb-core/lib/error.js:31:11) at queryCallback (/Library/WebServer/Documents/koudailicai/mongo-express/node_modules/mongodb-core/lib/cursor.js:212:36) at /Library/WebServer/Documents/koudailicai/mongo-express/node_modules/mongodb-core/lib/connection/pool.js:455:18 at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickCallback (internal/process/next_tick.js:180:9) name: 'MongoError', message: 'not authorized on backend to execute command { listCollections: true, filter: {}, cursor: {} }', ok: 0, errmsg: 'not authorized on backend to execute command { listCollections: true, filter: {}, cursor: {} }', code: 13, codeName: 'Unauthorized' }