Unable to connect to database: ReplicaSetNoPrimary Error

I received the above error after trying to connect to my mongo cluster via nodejs.

Here is my uri string with credentials omitted:

I also tested this when whitelisting all IP addresses and still getting the error. What am i doing wrong here?