Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

439
Views
NEST - Unable to connect to the database. Retrying (2)

I'm trying to connect like with mongodb, through the nest module. But when I pass the user and password parameters the connection is not made. But without the username and password parameters, a connection is made.

MongooseModule.forRoot('mongodb://username:pass!@127.0.0.1:22587/test')
ERROR [MongooseModule] Unable to connect to the database.


MongooseModule.forRoot('mongodb://127.0.0.1:22587/test')
LOG [InstanceLoader] MongooseModule dependencies initialized
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The problem wasn't that I was passing the d parameters in the wrong place.

MongooseModule.forRoot('mongodb://127.0.0.1:22587',
    {
        user: dbUser
        pass: dbPass
    }
)
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!