Skip to content
Snippets Groups Projects
Commit c715654b authored by Ryan Sanford's avatar Ryan Sanford
Browse files

Resolve "No replica set members found yet" errors when using mongodb...

Resolve "No replica set members found yet" errors when using mongodb connections when API is hosted by API.
parent b3405989
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,8 @@ db = pymongo.MongoClient(
__config['persistent']['db_uri'],
j=True,
connectTimeoutMS=__config['persistent']['db_connect_timeout'],
serverSelectionTimeoutMS=__config['persistent']['db_server_selection_timeout']
serverSelectionTimeoutMS=__config['persistent']['db_server_selection_timeout'],
connect=False
).get_default_database()
log.debug(str(db))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment