Cannot connect to my database even though I'm following all the steps

Hi all!

I’ve followed the steps here one by one:

It’s relatively simple to do, but I get this error:

The console shows the following when I run the test:
image

These are the same steps that this guy does in his video to set up mongoDB, and it works for him:

What could I do to fix this? Or better, what could I do in order to find out what the error is?

Thanks for your time

Jaime

Your project link(s)

solution: https://replit.com/@jaimeggb/boilerplate-advancednode

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

Challenge: Implement the Serialization of a Passport User

Link to the challenge:

The problem was that when I created the SESSION_SECRET key and value, in the value I typed ‘random value’.

When I removed the space between the two words everything worked.

Countless hours searching for that small mistake, learning the hard way!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.