Failed to authenticate to mongodb

Deploying a MongoDB database from the UI, automatically creates a database named "test" if you connect to the mongourl that plugin gives you, you can only modify that database, if i try to put /main at the end of the URI i get an authentication failure even tho everything is the same, when deploying the plugin it should allow you to select the name of the database you want instead of creating the "test" database. How can i connect to the "whatsapp" database?

Currently trying: mongodb://mongo:PASSWORD@containers-us-west-167.railway.app:6204/whatsapp but this returns the authentication failure

mongodb://mongo:PUzWbpv1IF0unHlAUaPS@containers-us-west-167.railway.app:6204 connects successfully but only to the "test" database that was created automatically.

The project is in typescript and i'm using mongoose, didn't had this issue while using ATLAS
even if i manually delete the "test" database it self creates again when connecting
normally I'd just at the fact you said WhatsApp, but Angelo has told me you are using whatsapp for business, so you're safe lol
so you have created a new database named whatsapp right?
yes sir
it even shows up in compass
connecting without /whatsapp at the end works just fine, the problem that it auto creates a database named "test"
using /whatsapp throws an autentication error
yes, i'm using mongoose
Connecting like this: mongodb://mongo:happypassword@containers-us-west-144.railway.app:7063/ works
Connecting like this: mongodb://mongo:happypassword@containers-us-west-144.railway.app:7063/whatsapp doesnt
even tho the database exists, and even if it doesn't it would auto create it
i know, one sec
specify your whatsapp database there
okay let me try ibe sec
it connects, but it still uses the "test" database
ok wait im braindead didn't commit
did you omit the test from the original url?
yes, let me redeploy
ok, success
thank you
no problem!

Looking for more? Join the community!

Recommended Posts
Private NPM Registry (GitHub)I'm using Yarn 3, GitHub Packages, and NodeJS. I am testing a deploy with `railway up` and when it gDjango advice neededHello good people, i would like to know how can i get some support for Railway? I started with a basUpdate TypebotHello, how i can update my project of typebot without lose all? i am new user in railwayWho deleted our database?I am writing to inquire about the recent deletion of the MySQL database in our account, we noticed Dockerbuild failes with no matching versionI attached the error and the dockerfile. The dockerfile locally runs withouth error but on railway ifailed opening connection to sql: default addr for networkHi, I am trying to deploy my golang web service which connects to mysql. I have added the mysql url Deploying Meilisearch template does not workI have a running project, If I click on new -> template -> Meili then a new service is created. HoweDeploy Flutter, error on buildHelp me! How do I deploy my flutter app on railway?Strapi crashes out of nowhereHello, my Strapi app sometimes crashes out of nowhere. This is not very good, because I have a prod Automatic Scaling not workingProject Id: 70ab406f-186f-40f7-ac61-c1a8dcb4bbb9 I am a user on the Hobby plan, the scaling on my pCron Job Run NowHello, I created a separate service with a cron expression configured. All works well until I try tNo sure that the changes are being applied when railway up.I have a Django app that was working fine until recently. One day, after running `railway up`, I staReferenceError: FormData is not defined in ProductionHello, my codes are working fine on localhost, but when I push the codes to railway it throws this mNestJS app starts correctly but receives SIGTERM after 20 seconds (Hobby Plan)Hello ! I've managed to successfully deployed and start my NestJS app, but I receive a SIGTERM 20 sFlask App Keep Getting Called From 192.168.0.xI'm not sure if this is the right place to ask, but i noticed that my app is getting call from 192.1sslIm new to all this so bare with me. I have a .dev site and the ssl giving me some issues. I'm gettiDeploy Logs Incorrectly Highlighting Logs as ErrorI'm having this issue with a custom log formatter on python defined like this: ``` formatter = loggDeployment stuck while pushing the image and failing after ~30minsHi, I have 4 environment in a project. I'm deploying fastapi application using uvicorn, it was takinpg_restoreIs remote postgres pg_restore from a local binary dump file supposed to take super long? It took likRemove 2FAHi!  I had a string of bad luck and lost my 2FA key for my account. Then I proceeded to use my reco