I’m trying to connect from my PHP application to MongoDB instance located in FRA1, but I get this errorr:
No suitable servers found (
serverSelectionTryOnce set): [connection error calling hello on ‘[app]-a000d008.mongo.ondigitalocean.com:27017’]
I’m using PHP 8 with ext v.1.10, MongoDB Server is the 4.4. The strange thing I see is that the DNS of my connection string (grab from my DO Panel) is [app]-f821f828.mongo.ondigitalocean.com but the one but the error talks about [app]-a000d008.mongo.ondigitalocean.com.
No problem if I try to connect to my instance using clients like MongoDBCompass or Robot3T.
What does that error means? Thaks in advance, CloudStore
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!