These are chat archives for Automattic/mongoose

16th
Mar 2016
Guilherme Sa
@guilsa
Mar 16 2016 04:41
blob
hi! I'm trying to follow the Scotch.io MongoDB on Heroku tutorial but am stumbling in the step to configure my own MONGOLAB_URI. I've created an account at mlab.com and have triple checked that my URI is correct, but keep getting an authentication failed error (https://scotch.io/tutorials/use-mongodb-with-a-node-application-on-heroku).
MONGOLAB_URI=mongodb://username:password@rest of the uri mlab is giving me
Guilherme Sa
@guilsa
Mar 16 2016 04:46
apparently instead of using a mongolab.com username and password i should use the database username and password, trying that
blob
mmm i didnt see this critical alert msg
to add new db user. someone there got to make that bigger
solved it
Михаил
@muxahuk
Mar 16 2016 14:44

Hey guys. I'm getting these error:

TypeError: _this.collections[i].onOpen is not a function
    at open (C:\Projects\ragar-web-server\node_modules\mongoose\lib\connection.js:507:28)

mongoose v 4.4.7

this._db = mongoose.createConnection( this.uri, this.configs.options ); // creating mongoose connection

what i'm doing wrong or what how to fix these ?

Михаил
@muxahuk
Mar 16 2016 15:40
fixed... it was my fault extending Object.prototype with enumerable function...