Skip to content

Problem booting after upgrade to 24.12.1 #73

Description

@solidsystem

🐜 Bug description

After upgrading to all the latest versions (synapse 24.12.1), I got error:

bootstrap failed SyntaxError: "undefined" is not valid JSON
at JSON.parse ()
at Object.load (/node_modules/@digital-alchemy/synapse/dist/services/sqlite.service.mjs:84:34)
at onReady (/node_modules/@digital-alchemy/synapse/src/services/storage.service.mts:199:35)
at (/node_modules/@digital-alchemy/core/src/services/lifecycle.service.mts:76:57)
at (/node_modules/@digital-alchemy/core/src/helpers/async.mts:19:47)
at Array.map ()
at each (/node_modules/@digital-alchemy/core/src/helpers/async.mts:19:26)
at Object.exec (/node_modules/@digital-alchemy/core/src/services/lifecycle.service.mts:76:15)
at async runReady (/node_modules/@digital-alchemy/core/src/services/wiring.service.mts:377:20)
at async bootstrap (/node_modules/@digital-alchemy/core/src/services/wiring.service.mts:520:19)

🎙️ Additional details

After changing line 125 in sqlite.service.mts from

if (data) {
to
if (data && data.base_state && data.base_state !== "undefined") {
it managed to boot and create a new db.

Maybe this or something similar should be included in the source?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions