How to connect Atlas with NodeJS app hosted on Heroku platform ?

206 views
Skip to first unread message

me.dig...@gmail.com

unread,
Sep 15, 2018, 7:17:19 PM9/15/18
to mongodb-user
Hello all, i have NodeJS app hosted on Heroku platform and i am running free Atlas cluster.I am experiencing an error when app connects with Atlas .

ERROR: 503 service unavailable

In my opinion it seems there is some problem in making connection between two.Please let me know how can i make connection between two.

THANKS

Wan Bachtiar

unread,
Sep 27, 2018, 3:07:54 AM9/27/18
to mongodb-user

I am experiencing an error when app connects with Atlas . ERROR: 503 service unavailable

Hi,

Is the 503 error generated by your Heroku application or by Atlas?
If it’s by your Heroku application, you may want to post a question in one of Heroku Support Channels.

Could you connect to your MongoDB Atlas from mongo shell ?

Have you setup IP Whitelist for your Atlas cluster ? i.e. MongoDB Atlas Security Whitelist.

Regards,
Wan.

Reply all
Reply to author
Forward
0 new messages