Closed hazeezet closed 2 years ago
the error is not when reading the status(msg), can you put all the code? I think you are using a msg.reply and it fails.
the error is not when reading the status(msg), can you put all the code? I think you are using a msg.reply and it fails.
This implementation failed
Solve it by this
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bug description
When there is a status update of any contact , everything crashes
Reproduction steps
Steps to reproduce the behavior:
Expected behavior
Nothing should happen, it should receive the status update
Relevant code
Environment (please complete the following information):
WhatsApp
await client.getWWebVersion()
]: 2.2202.12Library
Other
Additional context
Add any other context about the problem here.
error
C:\xampp\htdocs\whastapp_js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221 throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails)); ^
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'canSend') at g.canReply (https://web.whatsapp.com/bootstrap_qr.4df23620fb7636625f64.js:60:442169) at Object.window.WWebJS.sendMessage (puppeteer_evaluation_script:53:31)
at ExecutionContext._evaluateInternal (C:\xampp\htdocs\whastapp_js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async ExecutionContext.evaluate (C:\xampp\htdocs\whastapp_js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16) at async Client.sendMessage (C:\xampp\htdocs\whastapp_js\node_modules\whatsapp-web.js\src\Client.js:580:28)