Fatal error when adding a new client
Description
Good evening,
a few minutes ago i wanted to add a new client to BBS. After choosing an name an clickin on "Create Client" BBS throws the error:
Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1364 Field 'api_key' doesn't have a default value in /var/www/bbs/src/Core/Database.php:50 Stack trace: #0 /var/www/bbs/src/Core/Database.php(50): PDOStatement->execute(Array) #1 /var/www/bbs/src/Core/Database.php(69): BBS\Core\Database->query('INSERT INTO age...', Array) #2 /var/www/bbs/src/Controllers/ClientController.php(224): BBS\Core\Database->insert('agents', Array) #3 [internal function]: BBS\Controllers\ClientController->store() #4 /var/www/bbs/src/Core/App.php(66): call_user_func_array(Array, Array) #5 /var/www/bbs/public/index.php(46): BBS\Core\App->run() #6 {main} thrown in /var/www/bbs/src/Core/Database.php on line 50
Cheers
Steps to Reproduce
- Go to Clients > Add Client
- Add a new client and click "Create client" and BBS throws this error
Installation Type
Docker
BBS Version
v2.28.3
Agent Version (if applicable)
v2.25.0
Agent OS (if applicable)
Ubuntu / Debian
Relevant Logs
Thanks for the report! Fixed in v2.28.4, just released. Please upgrade.
Cool, thanks. It's working again.