Closed hoanghiep1x0 closed 3 years ago
@juicycleff
@hsluoyz this might be some issue with mongo dependency. A fix is coming
@hoanghiep1x0
const adapter = await MongoAdapter.newAdapter({
uri: uri ,
db: options.dbParameters(),
server: options.serverParameters(),
replset: options.replsetParameters(options.repl)
})
Use this.
RUN return error :
(node:11963) UnhandledPromiseRejectionWarning: Error: The "url" argument must be of type string. Received undefined at MongoAdapter.open (/Users/iadm/Project/microservice/authorization/node_modules/casbin-mongodb-adapter/build/main/lib/adapter.js:162:19) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Function.newAdapter (/Users/iadm/Project/microservice/authorization/node_modules/casbin-mongodb-adapter/build/main/lib/adapter.js:35:9) at async EventEmitter.<anonymous> (/Users/iadm/Project/microservice/authorization/src/config/db/mongo.js:15:21) (Use
node --trace-warnings ...to show where the warning was created)