Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Do not know how to serialize a BigInt #447

Closed
reaink opened this issue Apr 1, 2021 · 2 comments
Closed

TypeError: Do not know how to serialize a BigInt #447

reaink opened this issue Apr 1, 2021 · 2 comments

Comments

@reaink
Copy link

reaink commented Apr 1, 2021

use graphql bigint

Maybe this can solve this problem GoogleChromeLabs/jsbi#30 (comment)

(node:48282) UnhandledPromiseRejectionWarning: TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)
    at Job.asJSON (/Users/mac/code/oe-tr-be-prisma/node_modules/.pnpm/bullmq@1.15.1/node_modules/bullmq/src/classes/job.ts:159:18)
    at Job.addJob (/Users/mac/code/oe-tr-be-prisma/node_modules/.pnpm/bullmq@1.15.1/node_modules/bullmq/src/classes/job.ts:484:26)
    at Function.create (/Users/mac/code/oe-tr-be-prisma/node_modules/.pnpm/bullmq@1.15.1/node_modules/bullmq/src/classes/job.ts:73:24)
@reaink
Copy link
Author

reaink commented Apr 1, 2021

@reaink reaink closed this as completed Apr 1, 2021
@pedropmedina
Copy link

I'm having the same issue when dealing with bigint and yes we can handle it locally with the example provided on mdn, but shouldn't this be taken care of by bullmq instead wherever they make use of JSON.stringify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants