#Accelerate: I cannot put my MongoDB connection string

1 messages · Page 1 of 1 (latest)

dapper furnace
#

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

slim hearth
#

Hey @dapper furnace
Is your MongoDB database hosted on MongoDB Atlas?

dapper furnace
#

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

slim hearth
#

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

dapper furnace
#

mongodb+srv://<>:</>@cluster0.erol7qz.mongodb.net/KOR?retryWrites=true&w=majority&appName=Cluster0

dapper furnace
#

bruh xd

half island
slim hearth
#

@dapper furnace @half island 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?

slim hearth
#

Can you try using this connection string with lowercase parameter names?

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.

dapper furnace
#

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.

slim hearth
#

We just shipped the fix now. Now connection strings with parameters will also work (no need for lowercase)

dapper furnace
#

Thank u! Now give me bug hunter role :p

slim hearth
#

Really appreciate you taking the time to report this! 🙌

half island
slim hearth
#

Thanks for confirming! prisma_cool

upper turret
#

I realize that when I place the "pgbouncer=true" in the connection it fails too