Closed allancmello closed 3 years ago
@allancmello Is this error still coming?
I think he solved this. IIRC he asked some help on telegram group. @allancmello was you the one who i shared a simple NestJS Venom example?
I´m having the same problem. Anybody found a solution?
I’ve tested with a clean installation with "Getting started" code example and it worked as expected.
Try to delete package-lock.json
file, node_modules
folder and npm install
again.
I´m having the same problem. Anybody found a solution?
@eduardorangell Please note that WhatsApp is slowly rolling out a change. So not everyone is getting that.
I’ve tested with a clean installation with "Getting started" code example and it worked as expected. Try to delete
package-lock.json
file,node_modules
folder andnpm install
again.
I tried this, but without success. I´m still recieving the same error:
(node:31884) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'createWid' of undefined at Object.window.WAPI.window.WAPI.checkNumberStatus (C:\Users\DELL\Documents\Tiago\Dev\W3Interativa\api-salesbot-venom\node_modules\venom-bot\dist\lib\wapi\wapi.js:1:64760)
No, it appears to have been a node_modules libs corruption error.
Resolved by exemple in telegram group.
In my case, I just deleted the JSON from the session created in the TOKENS folder and solved it.
In my case, I just deleted the JSON from the session created in the TOKENS folder and solved it.
Thanks!
This problem has been fixed!
None of the suggestions worked for me.
None of the suggestions worked for me.
me to.. i try to change the version and delete Tokens folder its work, but if i restart the system that error show again
Problem reappeared. When I delete the 'node_modules' folder, it works again for a little while, but then the error reappears:
Error: Evaluation failed: TypeError: Cannot read property 'isWidlike' of undefined
Problem reappeared. When I delete the 'node_modules' folder, it works again for a little while, but then the error reappears:
Error: Evaluation failed: TypeError: Cannot read property 'isWidlike' of undefined
I worked again after I removed 2 directories: node_modules, tokens
None of the suggestions worked for me.
The error message is shown after reading the "Oi" sent by the smartphone's whatsapp. This is the sample code taken from the Venom-bot documentation.
(node:18028) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'createWid' of undefined at Object.window.WAPI.window.WAPI.checkNumberStatus (:1:64760)
at Object.window.WAPI.window.WAPI.sendExist (:1:29715)
at Object.window.WAPI.window.WAPI.sendMessage (:1:38155)
at puppeteer_evaluation_script:3:57
at ExecutionContext._evaluateInternal (D:\desenv\Frameworks\APIs Backend\Laboratorio\nest\venom\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:217:19)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async ExecutionContext.evaluate (D:\desenv\Frameworks\APIs Backend\Laboratorio\nest\venom\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:106:16)
(Use
node --trace-warnings ...
to show where the warning was created) (node:18028) 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: 2) (node:18028) [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. [Description of the bug, When Issue Happens]Environment
Windows 10
Steps to Reproduce
Log Output
Your Code
import { Controller, Get } from '@nestjs/common'; import { AppService } from './app.service'; import { create } from 'venom-bot';
@Controller() export class AppController { constructor(private readonly appService: AppService) {}
@Get() getStart(): void {
function start(client) { client.onMessage((message) => { if (message.body === 'Oi' && message.isGroupMsg === false) { client .sendText(message.from, 'Bem Vindo ao Venom 🕷') .then((result) => { console.log('Result: ', result); //return object success }) .catch((erro) => { console.error('Erro ao enviar: ', erro); //return object error }); } }); }
} }