Connection error for error "No suitable servers found ( serverSelectionTryOnce
set): [Failed to resolve 'xx.xx.xx.mongodb.net']
#2126
Unanswered
rezkym-archive
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to check for errors on this error.
"No suitable servers found (
serverSelectionTryOnce
set): [Failed to resolve 'cluster0.ltqw1.gcp.mongodb.net'] "I tried to check the Connection.php section of the "createConnection" function, after I changed the section
"return new Client ($ dsn, $ options, $ driverOptions);"
Becomes
"mongodb + srv: // myusername: @ cluster0.ltqw1.gcp.mongodb.net / my_database>? retryWrites = true & w = majority"
Maybe the fault lies in other functions, but what is certain is that if I change that part, everything will go well.
Thank you, hope you get a positive response
Beta Was this translation helpful? Give feedback.
All reactions