I successfully deployed my app to Heroku, Added mLab as my add-on
I also set
heroku config:set MONGOLAB_URI=mongodb://[myusername]:[mypassword]@ds119508.mlab.com:19508/heroku_l1q51vhd
but still I get:
I got the answer. The problem was with authentication. I made new user/pass and it works. You can use Mongochef to check if your connection and authentication with db is correct.
Serialize one class in two different ways with Jackson
How to get all the docs by id-s, which are stored in another schema's subdocument using Mongoose?
MongoDB: Multiple populate subdocuments not being returned
How to get last 5 docs in sequential order?
How to increment value in database every second