MongoDB connection issues

3 years ago

So when ever i try to connect to my database, i get this error. It worked before with my local database. But wanna have it on railway. I just straigt copied the url from the railway dashboard.

Closed

10 Replies

3 years ago

n/a


3 years ago

I assume you may have changed the database name?


3 years ago

I have set it to "test" wich already exist in it


3 years ago

MONGO_URL="mongodb://:@:/test"

3 years ago

have you changed anything service variables wise?


3 years ago

I works now, by removing the "/test"


3 years ago

is this mongoose?


3 years ago

Yes


3 years ago

you need to specify the database name in the options object


3 years ago

Alright thanks brody 👌


Welcome!

Sign in to your Railway account to join the conversation.

Loading...