Hi, I’m following a node.js tutorial and having trouble creating a user in MongoDB Atlas.
It’s connecting fine using just the db URI but once I try to create a user it fails with
“(node:64425) UnhandledPromiseRejectionWarning: MongooseError: Operation users.insertOne() buffering timed out after 10000ms”
The node.js command that tries to create the user is
new User({
username: profile.displayName,
googleId: profile.id
}).save().then((newUser) => {
console.log('new user created: ’ + newUser);
});