-
-
Notifications
You must be signed in to change notification settings - Fork 126
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
If the notifications DB is invalid, the app will not start.
Expected Behavior
The app should start as normal, and (re)generate the DB as needed
Steps To Reproduce
- Close Firebot if open
- Corrupt your notifications.json (eg. fully empty the file)
- Open Firebot
Version
5.61
What operating system are you using Firebot on?
Windows 11
Relevant log output
[2024-02-16 20:11:09.0218] - debug: No notification dbVersion detected.
[2024-02-16 20:11:09.0218] - debug: Error on when ready step
{
message: "Can't Load Database",
stack: "DatabaseError: Can't Load Database\n" +
' at JsonDB.load (/home/dennisr/Programming/Firebot/node_modules/node-json-db/dist/JsonDB.js:325:27)\n' +
' at JsonDB.retrieveData (/home/dennisr/Programming/Firebot/node_modules/node-json-db/dist/JsonDB.js:55:14)\n' +
' at JsonDB.getParentData (/home/dennisr/Programming/Firebot/node_modules/node-json-db/dist/JsonDB.js:121:53)\n' +
' at JsonDB.push (/home/dennisr/Programming/Firebot/node_modules/node-json-db/dist/JsonDB.js:254:29)\n' +
' at NotificationManager.loadNotificationCache (/home/dennisr/Programming/Firebot/build/backend/notifications/notification-manager.js:63:38)\n' +
' at NotificationManager.loadAllNotifications (/home/dennisr/Programming/Firebot/build/backend/notifications/notification-manager.js:133:14)\n' +
' at exports.whenReady (/home/dennisr/Programming/Firebot/build/backend/app-management/electron/events/when-ready.js:186:31)',
inner: {},
id: 1,
name: 'DatabaseError'
}Contact Details (Optional)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Closed