I’m trying to connect to Mongo Atlas using PHP and I get the following error: Could not establish stream for node servername:27017: [connection closed calling hello on 'servername:27017']
I have searched high and low and can’t find anyone with his error exactly. I’ve tried looking at SSL issues, but nothing helped. I am able to connect using mongo cli.
It would be nice to have more information, but what you are seeing might be the result of something in the earlier initialization that went undetected. I wrote an article about MongoDB PHP Error handling, that might give you checking ideas.