Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Database error #12

Open
irishgreencitrus opened this issue Oct 26, 2020 · 1 comment
Open

Database error #12

irishgreencitrus opened this issue Oct 26, 2020 · 1 comment

Comments

@irishgreencitrus
Copy link

So, I'm self-hosting the bot, with no code changes other then what are required and in discord the bot posts the first error which happens onnce and the second error, which happens everytime after that. It's caused by the database not initialising correctly when you click leave lobby and then get the bot to rejoin.

  1. sorry but something went wrong: NotNullConstraintViolationException: insert into "among_us_session" ("guild", "channel", "message", "user", "creator", "state", "region", "lobby_code", "group_impostors", "id") values ('770238738579062835', '770238739053543445', '770247203523919892', 'Lime', '371245917023502337', 'lobby', 'North America', 'JIXXXQ', false, NULL), ('770238738579062835', '770238739053543445', '770247111715323904', 'Lime', '371245917023502337', 'lobby', 'North America', 'JIXXXQ', false, 45) returning "id" - null value in column "id" of relation "among_us_session" violates not-null constraint

  2. sorry but something went wrong: ValidationError: You cannot call em.flush() from inside lifecycle hook handlers

@DarrenAlex
Copy link
Contributor

Known bug; I and some people are working on a fix

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants