rasliche / bluestar-nuxt

2 stars 2 forks source link

MongoError 11000 on second quiz submission #50

Closed rasliche closed 3 years ago

rasliche commented 3 years ago

On the dev branch, there's currently an issue with Mongo throwing an error 11000 when a user submits a second quiz. It doesn't explicitly say it's a Duplicate Key Error, but will update here with exact error later.

Error response logged from server:

{ error: 'will go here' }

Things I tried:

rasliche commented 3 years ago

Fixed in development by dropping the entire database. Working on fixing the development database without doing that...

Fixed on the dev deployment. Should be good when this is pushed to the production version. Writing some more tests to cover this next.