Open
Description
Description
Only occurs on first startup (database not created)
TriliumNext Version
0.93.0
What operating system are you using?
Windows
What is your setup?
Local (no sync)
Operating System Version
Win10 22H2 Build 19045
Error logs
Got error Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (node:_http_outgoing:699:11)
at ServerResponse.header (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\response.js:794:10)
at ServerResponse.append (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\response.js:755:15)
at res.cookie (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\response.js:892:8)
at generateToken (file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/node_modules/csrf-csrf/lib/esm/index.js:46:13)
at index (file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/src/routes/index.js:18:23)
at sqliteTransaction.cb (file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/src/routes/routes.js:395:34)
at sqliteTransaction (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\better-sqlite3\lib\methods\transaction.js:65:24)
at Object.transactional (file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/src/services/sql.js:220:52)
at file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/src/routes/routes.js:396:44 {
code: 'ERR_HTTP_HEADERS_SENT'
}
ERROR: get / threw exception: 'no such table: entity_changes', stack: SqliteError: no such table: entity_changes
at Database.prepare (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\better-sqlite3\lib\methods\wrappers.js:5:21)
at stmt (file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/src/services/sql.js:98:44)
at wrap (file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/src/services/sql.js:196:23)
at Object.getValue (file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/src/services/sql.js:113:12)
at Object.recalculateMaxEntityChangeId (file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/src/services/entity_changes.js:155:29)
at Object.transactional (file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/src/services/sql.js:235:24)
at file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/src/routes/routes.js:396:44
at C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\cls-hooked\context.js:118:13
at Namespace.run (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\cls-hooked\context.js:97:5)
at Namespace.runAndReturn (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\cls-hooked\context.js:117:8)
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (node:_http_outgoing:699:11)
at ServerResponse.header (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\response.js:794:10)
at ServerResponse.send (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\response.js:174:12)
at ServerResponse.json (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\response.js:278:15)
at handleException (file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/src/routes/routes.js:422:31)
at file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/src/routes/routes.js:410:13
at Layer.handle [as handle_request] (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\router\layer.js:95:5)
at next (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\router\route.js:149:13)
at doubleCsrfProtection (file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/node_modules/csrf-csrf/lib/esm/index.js:85:13)
at Layer.handle [as handle_request] (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\router\layer.js:95:5) {
code: 'ERR_HTTP_HEADERS_SENT'
}
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (node:_http_outgoing:699:11)
at ServerResponse.header (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\response.js:794:10)
at ServerResponse.send (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\response.js:174:12)
at ServerResponse.json (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\response.js:278:15)
at ServerResponse.send (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\response.js:162:21)
at file:///C:/TriliumNextNotes-v0.93.0-windows-x64/resources/app.asar/src/routes/error_handlers.js:29:32
at Layer.handle_error (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\router\layer.js:71:5)
at trim_prefix (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\router\index.js:326:13)
at C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\router\index.js:286:9
at router.process_params (C:\TriliumNextNotes-v0.93.0-windows-x64\resources\app.asar\node_modules\express\lib\router\index.js:346:12)