mongodb-rest icon indicating copy to clipboard operation
mongodb-rest copied to clipboard

TypeError: logger.warning is not a function

Open rajbht opened this issue 7 years ago • 0 comments

Getting the following exception when I try to GET /db-

Using auth: {} in config for my mongodb connection, and it looks like auth.js has logger.warning instead of logger.warn. Even having config.logger = "error" in config.json didn't help.

TypeError:` logger.warning is not a function
    at Layer.handle (/usr/local/lib/node_modules/mongodb-rest/lib/auth.js:38:20)
    at trim_prefix (/usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:254:17)
    at /usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:216:9
    at Function.proto.process_params (/usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:286:12)
    at next (/usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:207:19)
    at next (/usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:182:38)
    at Layer.handle (/usr/local/lib/node_modules/mongodb-rest/lib/accesscontrol.js:36:11)
    at trim_prefix (/usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:254:17)
    at /usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:216:9
    at Function.proto.process_params (/usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:286:12)

I am not sure if anyone is resolving these issues, but just wanted to post it, incase someone else saw this similar issue.

rajbht avatar Nov 08 '17 18:11 rajbht