Closed selected-pixel-jameson closed 3 years ago
I'm closing this as it does not seem to be a Parse Server issue.
For help with Parse Server, here are some resources you can try:
Feel free to comment if you have any questions and we can re-open this issue.
New Issue Checklist
Issue Description
I'm unable to connect to a MongoDB Cluster that is hosted on mongoDB's atlas / cloud platform.
Steps to reproduce
Setup a MongoDB cluster on the Mongodb cloud and attempt to connect to it using the databaseURI value when mounting a parse server with expressJS.
Actual Outcome
An error message stating that I was unable to connect to the dabaseURI string. An error stating noPrimarySet
Expected Outcome
A successful connection to the hosted MongoDB Database.
Failing Test Case / Pull Request
Environment
Server
4.5.0
MacOS
Local
Database
Remote MongoDB Atlas
4.4.3
MongoDB Atlas
Client
NodeJS / ExpressJS
N/A
Logs
There are no logs or errors created.
I'm attempting to connect to a remote MongoDB Atlas Cluster from my local machine when running Parse Server Mounted on an ExpressJS server.
I'm able to connect using the MacOS Compass App fine and via the MongoDB Shell. I cannot however get the Parse Server client to connect successfully.
I am able to get the parse server to connect successfully to my local MongoDB instance.
I have a NodeChef instance running which successfully connects to the Cluster. So it is working. I just can't achieve this connection locally.
I've tried a ton of variations when it comes to the connection sting. But this is the pattern we are using successfully for nodeChef which is not working locally.
mongodb://admin:xxxxx@replicaname-shard-00-00-cj3bn.mongodb.net:27017,replicaname-shard-00-01-cj3bn.mongodb.net:27017,replicaname-shard-00-02-cj3bn.mongodb.net:27017/dbname?ssl=true&replicaSet=replicaname-shard-0&authSource=admin&w=majority
Any help would be greatly appreciated as I've been struggling with this issue for awhile.