Skip to content

Snapshot error prevents aggregate from being loaded #16

@gudleik

Description

@gudleik
> await MyAggregate.load(key)
TypeError: Cannot convert undefined or null to object
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Job.hydrate (/src/node_modules/@ddes/core/lib/Aggregate.ts:388:54)
    at Function.get snapshotCompatChecksum [as snapshotCompatChecksum] (/src/node_modules/@ddes/core/lib/Aggregate.ts:80:48)
    at Array.map (<anonymous>)
    at components.push.Object.keys.map.eventType (/src/node_modules/@ddes/core/lib/Aggregate.ts:82:28)
    at Function.keys (<anonymous>)

Suggestion: if there are any errors with the snapshot, just log and ignore the error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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