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.
Cannot connect with authentication to mongodb?
storelocator with golang and mongodb
Updating _id field in MongoDB
Connect to MongoDB in C# with Credentials
Project first item in an array to new field (MongoDB aggregation)