FCC testing keeps timing out

Tell us what’s happening:
I have done everything like it is supposed to (even checked up with the solution), but it keeps failing because the connection times out. I could not find any useful solutions to this, so can anyone help me?

Your code so far

const mongoose = require('mongoose');
mongoose.connect(
  process.env.MONGO_URI,
  {
    useNewUrlParser: true,
    useUnifiedTopology: true
  }
);

const Schema = mongoose.Schema;
const personSchema = new Schema({
  name: {
    type: String,
    required: true
  },
  age: Number,
  favoriteFoods: [String]
});
var Person = mongoose.model("Person", personSchema);

var createAndSavePerson = function(done) {
  var charlesLeclerc = new Person({
    name: 'Charles Leclerc',
    age: 22,
    favoriteFoods: ['Vettel', 'Verstappen']
  });
  charlesLeclerc.save((err,data) => {
    if(err) return done(err);
    return done(null,data);
  });
};

Your browser information:

User Agent is: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0.

Challenge: Create and Save a Record of a Model

Link to the challenge:

Hello there,

It would be easier to confirm, if you could provide a link to your project, but some solutions are:

  1. add 'https://freecodecamp.org' to the list of allowedDomains in the server.js file
  2. add a package called cors to your package.json, require and use it app.use(cors());

One way to debug is to open your browser console, before your submit the link to be tested, and see if any errors pop up.

Hope this helps.