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

UnhandledPromiseRejectionWarning: TypeError: Cannot convert null to a BigInt #1459

Open
Jardaliao opened this issue Oct 18, 2024 · 0 comments

Comments

@Jardaliao
Copy link

log

⇝ (node:263808) UnhandledPromiseRejectionWarning: TypeError: Cannot convert null to a BigInt
at BigInt ()
at extractBigIntegerValue (/home/jay/projects/xxx/.zap/zap-v2024.03.14-nightly-src/dist/src-electron/validation/validation.js:176:16)
at getIntegerFromAttribute (/home/jay/projects/xxx/.zap/zap-v2024.03.14-nightly-src/dist/src-electron/validation/validation.js:214:11)
at getBoundsInteger (/home/jay/projects/xxx/.zap/zap-v2024.03.14-nightly-src/dist/src-electron/validation/validation.js:184:20)
at checkAttributeBoundsInteger (/home/jay/projects/xxx/.zap/zap-v2024.03.14-nightly-src/dist/src-electron/validation/validation.js:252:30)
at validateSpecificAttribute (/home/jay/projects/xxx/.zap/zap-v2024.03.14-nightly-src/dist/src-electron/validation/validation.js:95:15)
at /home/jay/projects/xxx/.zap/zap-v2024.03.14-nightly-src/dist/src-electron/rest/user-data.js:261:30
(Use electron --trace-warnings ... to show where the warning was created)
(node:263808) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:263808) UnhandledPromiseRejectionWarning: TypeError: Cannot convert null to a BigInt
at BigInt ()
at extractBigIntegerValue (/home/jay/projects/xxx/.zap/zap-v2024.03.14-nightly-src/dist/src-electron/validation/validation.js:176:16)
at getIntegerFromAttribute (/home/jay/projects/xxx/.zap/zap-v2024.03.14-nightly-src/dist/src-electron/validation/validation.js:214:11)
at getBoundsInteger (/home/jay/projects/xxx/.zap/zap-v2024.03.14-nightly-src/dist/src-electron/validation/validation.js:184:20)
at checkAttributeBoundsInteger (/home/jay/projects/xxx/.zap/zap-v2024.03.14-nightly-src/dist/src-electron/validation/validation.js:252:30)
at validateSpecificAttribute (/home/jay/projects/xxx/.zap/zap-v2024.03.14-nightly-src/dist/src-electron/validation/validation.js:95:15)
at /home/jay/projects/xxx/.zap/zap-v2024.03.14-nightly-src/dist/src-electron/rest/user-data.js:261:30
(node:263808) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)

how to reproduce:

  • clone connecthomeip v1.3
  • source scripts/activate.sh
  • ./scripts/tools/zap/zap_download.py --zap=SOURCE
  • export ZAP_DEVELOPMENT_PATH=./.zap/zap-v2024.03.14-nightly-src
  • ./scripts/tools/zap/run_zaptool.sh ./examples/bridge-app/bridge-common/bridge-app.zap
  • enable EventList or AttributeList attribute of Switch Cluster on endpoint 2
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

1 participant