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

fix(ignore): Fix crash due to BigInt serialization #1191

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

Koenkk
Copy link
Owner

@Koenkk Koenkk commented Sep 18, 2024

See title, currently Z2M crashes with:

TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)
    at ZclFrame.toString (/app/node_modules/zigbee-herdsman/src/zspec/zcl/zclFrame.ts:34:21)
    at Controller.onZclPayload (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:729:69)
    at ZStackAdapter.emit (node:events:517:28)
    at ZStackAdapter.onZnpRecieved (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:1001:26)
    at Znp.emit (node:events:517:28)
    at Znp.onUnpiParsed (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:77:18)
    at Parser.emit (node:events:517:28)
    at Parser.parseNext (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/unpi/parser.ts:46:26)
    at Parser.parseNext (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/unpi/parser.ts:52:22)

@Koenkk Koenkk requested a review from Nerivec September 18, 2024 20:06
@Koenkk Koenkk merged commit d760eb3 into master Sep 19, 2024
2 checks passed
@Koenkk Koenkk deleted the fix/big-int-serialize branch September 19, 2024 19:47
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

Successfully merging this pull request may close these issues.

2 participants