orkestral / venom

Venom is a high-performance system developed with JavaScript to create a bot for WhatsApp, support for creating any interaction, such as customer service, media sending, sentence recognition based on artificial intelligence and all types of design architecture for WhatsApp.
https://orkestral.io
Apache License 2.0
6.08k stars 1.2k forks source link

Error [TypeError]: window.WAPI.waitNewAcknowledgements is not a function #2713

Closed Micheltukker closed 5 months ago

Micheltukker commented 6 months ago

Description

When starting Venom the following error is printed

Error [TypeError]: window.WAPI.waitNewAcknowledgements is not a function at evaluate (evaluate at Whatsapp.initService (<REMOVED>\venom\dist\api\whatsapp.js:81:29), <anonymous>:14:12) at #evaluate (<REMOVED>\venom\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\ExecutionContext.js:199:59) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ExecutionContext.evaluate (<REMOVED>\venom\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\ExecutionContext.js:126:16) at async IsolatedWorld.evaluate (<REMOVED>\venom\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\IsolatedWorld.js:131:16) at async CdpFrame.evaluate (<REMOVED>\venom\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Frame.js:363:20) at async CdpPage.evaluate (<REMOVED>\venom\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Page.js:751:20) at async Whatsapp.initService (<REMOVED>\venom\dist\api\whatsapp.js:81:13) at async <REMOVED>\venom\dist\api\whatsapp.js:47:13

Steps to Reproduce

Tested it with the test script "test/index,js" from the repo.

Used the official version on NPM (5.1.0) and the version here from Github.

Your Code

const { tree } = require('gulp');
const venom = require('../dist');

venom.create({
    session: 'sessionname', //name of session
    headless: false,
    logQR: true,
  })
  .then((client) => {
    start(client);
  });

async function start(client) {

  const f = await client.getHostDevice();
  console.log(await client.getWAVersion());
  console.log(f);
  // client.onMessage((message) => {
  //   console.log(message);
  // });
  // const allMessages = await client.getAllUnreadMessages();
  // console.log(allMessages);
}
orkestral commented 6 months ago

We have support for Venom for just $15 per month, if you are interested, call our support via the link: https://web.whatsapp.com/send?phone=5561985290357

orkestral commented 5 months ago

2730

ghayman commented 5 months ago

@orkestral I'm not sure that these are related - could you reopen this ticket while I investigate some more?

Micheltukker commented 5 months ago

@orkestral I'm not sure that these are related - could you reopen this ticket while I investigate some more?

Still occurs in the latest Github version.