Hi,
Following "https://www.youtube.com/watch?v=QSO4vIePxqs&t=1s" video
I have created a free-tier MongoDB account, and was trying to connect to the environment
But , I am getting error saying connection string invalid "mongodb+srv://dboutsystems:mipmyeznzxhks8q3@cluster0.l5nna.mongodb.net/MyEquipment?retryWrites=true&w=majority" , can anyone please help me with this problem? \
Thankyou
Hello Ritesh,
Is it possible for you to change mongodb+srv to just mongodb in the connection string and try it?
Regards,
- AJ
As per I saw on this URL
https://stackoverflow.com/questions/56249526/failed-to-parse-mongodb-uri-mongodb-invalid-host-string-in-uri
changing the name of the file from .env to .env.local, may be works for you
.env
.env.local, may be works for you
Thanks and Regards,
Akshay Deshpande
Hello Akshay,
I have not used any "env" file for the configuration, I have used site property named connection string
Hello Ritesh Ghate,
Error "connection string invalid" is not something related to outsystems.
You need to verify the connection string created in MongoDB.
Follow the steps, in the below documents to create a valid connection string.
https://medium.com/@mennohoogsteen/use-a-free-mongodb-with-outsystems-da6135210c28
Hope this helps!
Ellakkiya.S
Thankyou AJ this worked for me, but now i'm facing connection time out error
Happy to hear that resolved the connection string issue Ritesh.
As for the time out error, I would recommend starting a new thread and share the error stack / log information from service center please. It will help the community identify the root cause faster. Thanks!
AJ
Please review the following article. In the past I had no issues connecting OutSystems app to MongoDB using the steps listed here:
Some of the screenshots in the article are now a bit different in MongoDB but you will be able to easily negotiate those changes. I believe you are just missing a step or two for e.g. that part where you set your IP address.
By the way, you are displaying your password in the connection string in your original post. If so please remove it and place a generic <password> tag and additionally recreate a new password.