Could not connect to Mongo Atlas

Tell us what’s happening:
Trying to connect mongo atlas but can’t connect.The error is
‘Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you’re trying to access the database from an IP that isn’t whitelisted. Make sure your current IP address is on your Atlas cluster’s IP whitelist:’,

Even IP is whitelisted and allow from all devices is enable.

Your code so far
const express = require(“express”);
const mongoose = require(“mongoose”);
{ useNewUrlParser: true, useUnifiedTopology: true }
.catch(e => {
console.log(“MONGOERROR”, e);
const app = express();
const Schema = mongoose.Schema;
const userSchema = new Schema({
name: { type: String, required: true },
age: Number,
favoriteFoods: [String]
const Person = mongoose.model(“Person”, userSchema);
var createAndSavePerson = function(done) {
var janeFonda = new Person({
name: “Jane Fonda”,
age: 84,
favoriteFoods: [“vodka”, “air”]
});, data) {
if (err) return done(err);
done(null, data);
app.listen(3000, () => {

Your browser information:

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

Challenge: Create and Save a Record of a Model

Link to the challenge:

Shouldn’t this be process.env.MONGO_URI?

Security->Network Access->
Change allow access from anywhere

This one is also not working

This is also not working