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.
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
sorry but something went wrong: ValidationError: You cannot call em.flush() from inside lifecycle hook handlers
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.
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
sorry but something went wrong: ValidationError: You cannot call em.flush() from inside lifecycle hook handlers