venom: sendText when first text is error

from bot is a first chat to receiver i got some error

(node:855) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: n._find is not a function
    at https://web.whatsapp.com/bootstrap_qr.ccb090b3a46e05558abd.js:56:342945
    at Generator.next (<anonymous>)
    at t (https://web.whatsapp.com/vendor1~bootstrap_qr.d4ef2d214939fc06cd93.js:2:63784)
    at s (https://web.whatsapp.com/vendor1~bootstrap_qr.d4ef2d214939fc06cd93.js:2:63995)
    at https://web.whatsapp.com/vendor1~bootstrap_qr.d4ef2d214939fc06cd93.js:2:64054
    at j (https://web.whatsapp.com/bootstrap_qr.ccb090b3a46e05558abd.js:2:385573)
    at new g (https://web.whatsapp.com/bootstrap_qr.ccb090b3a46e05558abd.js:2:376468)
    at https://web.whatsapp.com/vendor1~bootstrap_qr.d4ef2d214939fc06cd93.js:2:63935
    at W._serverQuery (https://web.whatsapp.com/bootstrap_qr.ccb090b3a46e05558abd.js:56:343309)
    at W._query (https://web.whatsapp.com/bootstrap_qr.ccb090b3a46e05558abd.js:56:342436)
    at ExecutionContext._evaluateInternal (/Users/rw/Documents/whatsapp/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async ExecutionContext.evaluate (/Users/rw/Documents/whatsapp/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:16)
(Use node --trace-warnings ... to show where the warning was created)
(node:855) 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: 1)
(node:855) [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.

i use 4.0.1 venom bot version

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 22 (1 by maintainers)

Most upvoted comments

Try the following steps: Delete node-modules folder,; Delete package-lock; Add in package.json: “puppeteer”: “^8.0.0”, “puppeteer-extra”: “^3.1.18”, “puppeteer-extra-plugin-stealth”: “^2.9.0”; Run npm cache clean --force; and Run npm i venom-bot@3.1.12; and npm i

I solved this using version 3.1.12 instead of 4.0.0.