Mongodb and Mongoose set timeout

Tell us what’s happening:
Hello for like 5h i try to passed this exercice !
it’s connected to my Mongoose Atlas soo i don’t understand why he don’t work

Your code so far

const mongoose = require('mongoose');

mongoose.connect(process.env.MONGO_URI, { useNewUrlParser: true });

const { Schema } = mongoose;

const personSchema = new Schema({
  name: String,
  age: Number,
  favoriteFoods: [String],
});

const Person = mongoose.model('Person', personSchema);

const createAndSavePerson = (done) => {
  const phillip = new Person({
    name: 'Phillip',
    age: 26,
    favoriteFoods: ['Spaghetti Bolognese', 'Fettuccine Alfredo', 'Beef Stroganoff'],
  });
  phillip.save((err, data) => {
    if (err) return done(err);
    return done(null, data);
  });
};

Your browser information:

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

Challenge: undefined

Link to the challenge:

Hello there.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

I found the error !

it’s because i was not connected to MongoAtlas so you need to make this :
-> go on MongoAtlas and Network Access
-> in Action click on Edit
-> enter 0.0.0.0/0
-> reload glitch and test it !