Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: database name must be a string #135

Open
AndyMBridges opened this issue Apr 7, 2017 · 1 comment
Open

Error: database name must be a string #135

AndyMBridges opened this issue Apr 7, 2017 · 1 comment

Comments

@AndyMBridges
Copy link

AndyMBridges commented Apr 7, 2017

Hi Guys,

I have created a config.production.js file by duplicating the example and I receive the following error when running 'node index'

Error: database name must be a string
at validateDatabaseName (/Users/andrew.bridges/sites/pinitto.me/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:205:46)
at new Db (/Users/andrew.bridges/sites/pinitto.me/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:77:3)
at new MongoStore (/Users/andrew.bridges/sites/pinitto.me/node_modules/connect-mongo/lib/connect-mongo.js:95:17)
at Object. (/Users/andrew.bridges/sites/pinitto.me/src/database/session.js:4:17)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)

Thanks

@AndyMBridges AndyMBridges changed the title return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); Error: Cannot find module '../config.production.js' Apr 7, 2017
@AndyMBridges AndyMBridges changed the title Error: Cannot find module '../config.production.js' Error: database name must be a string Apr 7, 2017
@lloydwatkin
Copy link
Member

Can you try commenting line 15 here https://github.com/pinittome/pinitto.me/blob/master/src/database-loader.js#L15, it may be that this parameter is preventing you from connecting (its needed for mongolab right now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants