codefellows / lab-support

Tech Support for Lab assignments
0 stars 0 forks source link

[Example] Help with database connections #1

Closed brookr closed 4 years ago

brookr commented 4 years ago

Describe the issue

A clear and concise description of what you are stuck on, what's blocking you, a bug, or what questions you have:

My app isn't able to start.

To Reproduce

How can we see the problem? Steps to reproduce the behavior:

  1. When I go to: run nodemon
  2. Then I click on/scroll to/try to:
  3. Then I click on/scroll to/try to:
  4. Then I click on/scroll to/try to:
  5. I can tell there's a problem because: The server doesn't start, it throws an error.

Expected behavior

A clear and concise description of what you expected to happen:

The server should start, connected to the database.

Actual behavior

Is there an error? What is the exact error? What line number is it happening on? If applicable, add screenshots to help explain your problem.

Error Type: UnhandledPromiseRejectionWarning Error Message: Client has already been connected. You cannot reuse a client.

Screenshot:

image (1)

Additional context

What do you think the error message means?

Something is wrong with how I'm setting up the client.

What have you tried to do so far to fix this?

Triple-checked my connection string. Verified the database exists... Read through my code a few times. Asked a classmate.

What other info or context about the problem might help us understand it? OS version?

I'm on a Mac, running macOS 10.15.3.