safak / youtube

5.04k stars 5.47k forks source link

Unable to create more than one product document in DB #103

Closed SuryaNMenon closed 2 years ago

SuryaNMenon commented 2 years ago

Using the add product post method I am able to create and add only a single product to the mongoDB collection. After that if I try to create any more, it gives me an internal error 500. If I delete the document in mongoDB and try to add more products, I am only able to add one before it gives me internal error again. Any suggestions? image image

SuryaNMenon commented 2 years ago

I managed to solve this issue using the answer in this thread: https://stackoverflow.com/questions/69104902/how-do-i-solve-this-mongodb-code-11000