Skip to content

[BUG] connecting to QRev Analytics db cluster #23

Open
@MuratDoganer

Description

@MuratDoganer

Describe the bug
When running npm start in the /server folder, I get the following error:

2024-11-27T16:06:12.866Z: error: Error connecting to QRev Analytics db cluster:  The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.
 Stack: MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.

To Reproduce
Steps to reproduce the behavior:

  1. Follow set up steps
  2. Make sure a database is created and the connection string is correct
  3. Enter the connection string in the env file under MONGODB_URL
  4. run npm ci followed by npm start, the error comes up

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions