Error connecting to MongoDB

com.mongodb.MongoTimeoutException: Timed out after 3000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketReadException: Prematurely reached end of stream}}]

Anyone else face this issue? SSL enabled on MongoDB.

I am having the same problem. I use MongoDB 3.2.10 with SSL enabled. I can connect to a 3.2.10 instance that does not have ssl enabled.

we don’t use, can you replicate this issue with a mongo installation on your localhost by any chance?

trying to reproduce this.

We have our serving running on digital ocean and other clients are able to connect with the same info.

Ever sort this out? I’m having the same issue here

Ditched the mac client and end up doing a heroku install. That works brilliantly.

Good luck!

Thanks! I got it working also by switching to another Mongo host (Mlab) that allows connecting without SSL.