Mongoose failed to connect and Atlas MongoDB expect to whitelist IP while all IP has allowed help

It is possible your connection string is changed, especially if you are on the free tier. I suggest starting to check that first.