mlab
Unable to connect to mongolab, Getting MongoError: auth failed
Make sure you are using the database username and password not the account username and password from Mlab. In MLab, formerly MongoLab, do the following Navigate to Users Add Database User Choose your username and password Now you can test this on the shell with mongo ds061374.mlab.com:61374/yourdb -u <dbuser> -p <dbpassword>
heroku is giving me Method not allowed [closed]
From the Q&A on the webdevbootcamp video: “Make sure you are trying to access the correct link that gets printed to the console. You shouldn’t try to load the link which ends with .git since that is just the repository location. Your link should look like https://your-app-name.herokuapp.com/”
A timeout occured after 30000ms selecting a server using CompositeServerSelector
Add “?connect=replicaSet” to the end of your connection string if connecting to MongoLab. new MongoClient(“mongodb://username:[email protected]:11111/db-name?connect=replicaSet”) This JIRA ticket has some details: https://jira.mongodb.org/browse/CSHARP-1160 Basically the default is to connect to a replica set member. But MongoLab’s Single-Node settings are actually a single node replica set and this causes us to not trust it. Appending ?connect=replicaSet to … Read more
Why is PyMongo 3 giving ServerSelectionTimeoutError?
We’re investigating this problem, tracked in PYTHON-961. You may be able to work around the issue by passing connect=False when creating instances of MongoClient. That defers background connection until the first database operation is attempted, avoiding what I suspect is a race condition between spin up of MongoClient’s monitor thread and multiprocess forking.