Skip to content

TypeError: Do not know how to serialize a BigIntΒ #394

@qwe2tz

Description

@qwe2tz

Hi, I am having some issues with that seems to be the library to handle hot blocks - @subsquid/typeorm-store/lib/hot.js

/app/node_modules/@subsquid/typeorm-store/lib/hot.js:89
change[i] = JSON.stringify(changes[i]);
^

TypeError: Do not know how to serialize a BigInt
at JSON.stringify ()
at ChangeTracker.writeChangeRows (/app/node_modules/@subsquid/typeorm-store/lib/hot.js:89:30)
at ChangeTracker.trackUpsert (/app/node_modules/@subsquid/typeorm-store/lib/hot.js:26:21)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Store.upsert (/app/node_modules/@subsquid/typeorm-store/lib/store.js:32:13)

Any ideas? This happens once after all the blocks were indexed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions