question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'attributes' of undefined in getBatteryLevel on 2.2146.9

See original GitHub issue

Description

 (node:25) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'attributes' of undefined
   at Object.window.WAPI.window.WAPI.getBatteryLevel (/usr/src/app/node_modules/venom-bot/dist/lib/wapi/wapi.js:1:70062)
   at __puppeteer_evaluation_script__:1:28
   at ExecutionContext._evaluateInternal (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
   at processTicksAndRejections (internal/process/task_queues.js:93:5)
   at async ExecutionContext.evaluate (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:16)
 (Use `node --trace-warnings ...` to show where the warning was created)
 (node:25) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async functi
on 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.ht
ml#cli_unhandled_rejections_mode). (rejection id: 1)
 (node:25) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled
 will terminate the Node.js process with a non-zero exit code.

Environment

  • Venom version(s): [4.0.3]
  • Browser: [Chrome]
  • OS: [Ubuntu 20.04]
  • Node version: [Node 14]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jonalan7commented, Nov 25, 2021

@antirek fix!

0reactions
antirekcommented, Nov 25, 2021

@jonalan7 I checked, it’s ok!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'attributes' of undefined
It seemed like the object just disappeared when I try to access its property XD. Anyone knows the reason why? Another strange thing...
Read more >
TypeError: Cannot read property 'attributes' of undefined
TypeError : Cannot read property 'attributes' of undefined · 1) add the default columns block and select a layout · 2) put the...
Read more >
orkestral/venom (Raised $0.00) - Issuehunt
Cannot read property 'wid' of undefined when reply or forward messages ... Cannot read property 'attributes' of undefined on 2.2146.9.
Read more >
Solved: When saving a project, "Uncaught TypeError: Cannot...
When saving a project, "Uncaught TypeError: Cannot read property 'getAttribute' of undefined". Go to solution.
Read more >
Cannot read property 'getAttribute' of undefined on node/add ...
...which appears to be looking for an attribute named "data-edit-entity-instance-id". I've copied a custom node template into my theme and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found