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
17 Replies
Hey @bayrem🪽
Is your MongoDB database hosted on MongoDB Atlas?
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
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
mongodb+srv://<>:</>@cluster0.erol7qz.mongodb.net/KOR?retryWrites=true&w=majority&appName=Cluster0
bruh xd
I'm having the same problem
Have you found any solution?
@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?
This should ideally work. Please let me know in case you still get this error.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.
We just shipped the fix now. Now connection strings with parameters will also work (no need for lowercase)
Thank u! Now give me bug hunter role :p
Really appreciate you taking the time to report this! 🙌
Yup! Fixed it for me. Thanks alot .
Thanks for confirming! :prisma_cool:
I realize that when I place the "pgbouncer=true" in the connection it fails too
If you are using Prisma Accelerate then you shouldn't need to use PgBouncer.