bradtraversy / proshop-v2

ProShop ecommerce website built with MERN & Redux Toolkit
532 stars 267 forks source link

Mongoose error with Buffering timeout when seeding database #10

Open GregPetropoulos opened 1 year ago

GregPetropoulos commented 1 year ago

When seeding the database running the npm run data:import command , an error surfaced MongooseError: Operation orders.deleteMany() buffering timed out after 10000ms.

Screenshot 2023-07-07 at 8 51 43 AM

The fix is I added await before the connectDB() function call in seeder.js

Screenshot 2023-07-07 at 8 51 18 AM
HridoyHazard commented 11 months ago

this is the only solution?