Accelerate: I cannot put my MongoDB connection string

As I wanted to put my MongoDB conection string in accelerate to initiate a new project, it's always telling me that my string is wrong and im definitely sure that my string is right
No description
17 Replies
bayrem🪽
bayrem🪽OP4mo ago
No description
Nurul
Nurul4mo ago
Hey @bayrem🪽 Is your MongoDB database hosted on MongoDB Atlas?
bayrem🪽
bayrem🪽OP4mo ago
yea, it used to work perfectly on my pther projects now i want to start a new project doing the same thing it is not accepting the string, i even used old strings that were working before its not accepting them
Nurul
Nurul4mo ago
Can you please share your connection string here (Obviously after obfuscating the username and password 😄 ) I want to see the format of the connection string and try it
bayrem🪽
bayrem🪽OP4mo ago
mongodb+srv://<>:</>@cluster0.erol7qz.mongodb.net/KOR?retryWrites=true&w=majority&appName=Cluster0
bayrem🪽
bayrem🪽OP4mo ago
bruh xd
No description
Hossam Mohsen
Hossam Mohsen4mo ago
I'm having the same problem Have you found any solution?
Nurul
Nurul4mo ago
@bayrem🪽 @Hossam Mohsen I believe I found what was causing the issue. Can you please remove the connection string parameters and try again? Removing this: ?retryWrites=true&w=majority&appName=Cluster0 resolved the issue for me. I am checking this with our engineering team to get this investigated? Can you try using this connection string with lowercase parameter names?
mongodb+srv://<>:</>@cluster0.erol7qz.mongodb.net/KOR?retrywrites=true&w=majority&appname=Cluster0
mongodb+srv://<>:</>@cluster0.erol7qz.mongodb.net/KOR?retrywrites=true&w=majority&appname=Cluster0
This should ideally work. Please let me know in case you still get this error.
bayrem🪽
bayrem🪽OP4mo ago
This has solved the connection issue for me, but please try to fix adding the queries to the strings because they contain important informations for the connection. This is defenitely a bug because all connection strings used to work perfectly even with the queries.
Nurul
Nurul4mo ago
We just shipped the fix now. Now connection strings with parameters will also work (no need for lowercase)
bayrem🪽
bayrem🪽OP4mo ago
Thank u! Now give me bug hunter role :p
Nurul
Nurul4mo ago
Really appreciate you taking the time to report this! 🙌
Hossam Mohsen
Hossam Mohsen4mo ago
Yup! Fixed it for me. Thanks alot .
Nurul
Nurul4mo ago
Thanks for confirming! :prisma_cool:
Anh Nguyen
Anh Nguyen4mo ago
I realize that when I place the "pgbouncer=true" in the connection it fails too
Nurul
Nurul4mo ago
If you are using Prisma Accelerate then you shouldn't need to use PgBouncer.
Want results from more Discord servers?
Add your server