When you need help with these challenges could you post a link to your full code please and also a link to the challenge?
Your error is in this line:
return console.log(err)
You are terminating the function even if there is no error, so saving the db record will fail. You should only return an error if there is an error to return. So, turn this into a conditional statement.
If you go to your Secrets tab, you have a MONGO_URI variable which looks something like this? (I have redacted my username and password but that’s where you should see your username and password).
No, you shouldn’t need to change anything. I was just checking if you have correctly set your MONGO_URI variable in your Secrets tab? I only ask because your repl passes the challenge for me, so there’s nothing wrong with your code.
I don’t know what to tell you. I have forked your repl and used my MONGO_URI and it passes immediately for me. I can only assume that there’s a problem with your MONGO_URI. Perhaps your username/password isn’t correct? Or there’s some other problem with the format of your URI?