I can't connect to the online database in my api giving a mongoError: auth failed
when i use
mongoose.connect("mongodb://myusername:my password@ds039674.mongolab.com:39674heroku_rlz2hh1h");
but when i use mongo cli it connects without any problems.
mongo ds ds039674.mongolab.com:39674heroku_rlz2hh1h -u myusername -p mypassword
I am using the default generated app of the Heroku step by step guide https://devcenter.heroku.com/articles/getting-started-with-nodejs#set-up