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.
Mongodb aggregate not returning results that exist
Forum like data structure: NoSQL appropriate?
Aggregation Sum Distinct documents from array field MongoDB [duplicate]
Can not start MongoDB 3.2.1 on CentOS 7
Restrict mongoose field values