Has anyone successfully connected Adobe@2021 to Mo...
# adobe
c
Has anyone successfully connected Adobe@2021 to MongoDB Atlas in the CF admin? I can connect to the local (localhost) connection. But when I use a full connection string with username and password.
e
Make sure the port is not blocked
c
Not a port issue, to my knowledge. I can connect to the instance from my laptop via MongoDBCompass, Mongosh, and VS Code.
c
anything in the logs? also try opening up the neo-datasource.xml maybe to see how cfadmin is parsing that connection string?
c
Stored separately in neo-nosql-datasource.xml
Copy code
<wddxPacket version='1.0'></wddxPacket>
    <header /><data>
        <array length='1'>
            <struct type='coldfusion.server.ConfigMap'><var name='localMongoDB'>
                    <struct><var name='port'>
                            <string>27017</string>
                        </var><var name='host'>
                            <string><mongodb://localhost:27017></string>
                        </var><var name='ssl'>
                            <string>YES</string>
                        </var><var name='readPreference'>
                            <string>primary</string>
                        </var><var name='readConcern'>
                            <string>local</string>
                        </var><var name='type'>
                            <string>mongodb</string>
                        </var><var name='name'>
                            <string>localMongoDB</string>
                        </var></struct>
                </var></struct>
        </array>
    </data></wddxPacket>
c
thats where im wondering if when you change from the localhost to the conn string if it parses it properly?
c
@Cory Howitz It works fine with a localhost url
I tried changing the host to be the full connection string, like others in JavaScript frameworks typically use and it will not validate.
c
if you look at the xml after setting up the full string, does the XML look good?
c
@Cory Howitz I'm not sure if this is what you mean but I have tried to paste in the full connection string (the notes on the setup page say you can) example:
mongodb+srv://<user>:<password>@cluster.mongodb.net:27017
. I done variations of the string and nothing has worked. Once I save and restart it puts the original string back in