lasse
PROOP
2 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.
10 Replies
lasse
PROOP
2 years ago
n/a
brody
EMPLOYEE
2 years ago
I assume you may have changed the database name?
lasse
PROOP
2 years ago
I have set it to "test" wich already exist in it
lasse
PROOP
2 years ago
MONGO_URL="mongodb://:@:/test"brody
EMPLOYEE
2 years ago
have you changed anything service variables wise?
lasse
PROOP
2 years ago
I works now, by removing the "/test"
brody
EMPLOYEE
2 years ago
is this mongoose?
lasse
PROOP
2 years ago
Yes
brody
EMPLOYEE
2 years ago
you need to specify the database name in the options object
lasse
PROOP
2 years ago
Alright thanks brody 👌