Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
Discussion options

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

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #2126 on October 16, 2020 07:40.

AltStyle によって変換されたページ (->オリジナル) /