-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MONGODB ATLAS CONNECTION ISSUE #452
Comments
Looking at examples in the documentation your URI looks weird. |
Ok this seems like a bug then. At a glance I don't see anything in the bundle that would be prepending URI with additional |
I am using 3.6 and i am able to connect the mongodb atlas using new MongoDB\Client $con = new MongoDB\Client("mongodb+srv://testuser:testpassword@cluster0-324234.mongodb.net"); From symfony i tried with the connection string for 3.4 mongodb version and its working fine. Thanks a lot. |
Ok, found the issue in the adapter, gonna open an issue there and cross reference. |
@miljojohn would you mind testing |
@miljojohn the 1.1.5 release of |
While not good, the error points out that |
pecl install mongodb Installed ext-mongodb using this command and also i am able to connect the atlas server from normal php on the same server. Please refer this code https://github.com/doctrine/DoctrineMongoDBBundle/files/1774462/phpconnection.txt |
The exception with message "Cannot create SSL client. SSL is not enabled in this build." originates in In the same file, The formatting of the It's entirely possible to have multiple versions of PHP installed on the same system. This is often the case for MacOS users, where they might have the default version of PHP that ships with MacOS, a version available with MAMP, and/or a PHP runtime installed with Homebrew. In the future, this is all helpful information that you should provide in a support request. AFAIK, you've provided no details whatsoever about your operating system or PHP environment.
The second line in the command above is only adding "extension=mongodb.so" to the INI file used by the I assume you copied that snippet from the PHP library or driver README files. Both of those also link to Installing the MongoDB PHP Driver with PECL on PHP.net, which talks about each PHP environment possibly having its own You should confirm exactly which PHP environment is producing this exception, and then walk through installation steps for that exact environment. Assuming that environment has its own |
thank you @jmikola . Issue is fixed. |
I am trying to use mongodb atlas in my application.I set up my .env file like
###> doctrine/mongodb-odm-bundle ###
MONGODB_URL=mongodb+srv://testuser:yyyyxyxyyx@cluster0-xcz.mongodb.net
MONGODB_DB=db_XYZ
###< doctrine/mongodb-odm-bundle ###
But i got one uri parse error.
Failed to parse MongoDB URI: 'mongodb://mongodb+srv://xxxxx:yyyyyyyyy@cluster0-xyz.mongodb.net
Please help .
The text was updated successfully, but these errors were encountered: