500 error (unique constraint failed) trying to add cards #2561
-
|
Running on docker with a db exported from the cloud version of fizzy, and it suddenly started getting Internal Server Error trying to add any cards. I'm assuming this is something to do with a sequence number getting out of sync and will investigate that angle next, but here are the logs in case that's helpful: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
So, it looks like accounts.cards_count was 10, though my highest card number was 26. I had recently noticed it started counting cards from 1 again, though I wasn't sure exactly when. I just thought it reused deleted cards. So I don't know if this dates back to the time of importing the account data, or if it's due to something else. I've bumped the cards_count to 26, if it goes back down again at some point we'll know it's not the import that did it. |
Beta Was this translation helpful? Give feedback.
Hey @pjeby, there was a bug in the import process and we didn't migrate over the card count.
I just deployed a fix for that, so this shouldn't happen in the future.
Thank you for reporting this!