Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot not responding to new version app #4

Open
hari6000 opened this issue Sep 2, 2021 · 1 comment
Open

Bot not responding to new version app #4

hari6000 opened this issue Sep 2, 2021 · 1 comment

Comments

@hari6000
Copy link

hari6000 commented Sep 2, 2021

(node:24104) UnhandledPromiseRejectionWarning: TimeoutError: waiting for selector canvas failed: timeout 45000ms exceeded
at new WaitTask (C:\wamp64\www\bot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\DOMWorld.js:509:34)
at DOMWorld.waitForSelectorInPage (C:\wamp64\www\bot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\DOMWorld.js:420:26)
at Object.internalHandler.waitFor (C:\wamp64\www\bot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\QueryHandler.js:31:77)
at DOMWorld.waitForSelector (C:\wamp64\www\bot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\DOMWorld.js:313:29)
at Frame.waitForSelector (C:\wamp64\www\bot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\FrameManager.js:841:51)
at Page.waitForSelector (C:\wamp64\www\bot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\Page.js:2238:33)
at Timeout.getQrCode [as _onTimeout] (C:\wamp64\www\bot\node_modules\whatsapp-web.js\src\Client.js:141:28)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use node --trace-warnings ... to show where the warning was created)
(node:24104) 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:24104) [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.
(node:24104) UnhandledPromiseRejectionWarning: TimeoutError: waiting for selector canvas failed: timeout 45000ms exceeded

@lucioerlan
Copy link
Owner

(node:24104) UnhandledPromiseRejectionWarning: TimeoutError: aguardando o seletor canvasfalhou: timeout 45000ms excedido na nova WaitTask (C:\wamp64\www\bot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ DOMWorld.js:509:34) em DOMWorld.waitForSelectorInPage (C:\wamp64\www\bot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\DOMWorld.js:420:26) em Object.internalHandler.waitFor (C:\wamp64\www\bot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\QueryHandler.js:31:77) em DOMWorld.waitForSelector (C :\wamp64\www\bot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\DOMWorld.js:313:29) em Frame.waitForSelector (C:\wamp64\www\bot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\FrameManager.js:841:51) em Page.waitForSelector (C:\ wamp64\www\bot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\Page.js:2238:33) em Timeout.getQrCode [as _onTimeout] (C:\wamp64\www\ bot\node_modules\whatsapp-web.js\src\Client.js:141:28) em runMicrotasks () em processTicksAndRejections (internal/process/task_queues.js:95:5) (Use node --trace-warnings ...para mostrar onde o aviso foi criado) (nó:24104) UnhandledPromiseRejectionWarning: Rejeição de promessa não tratada. Este erro se originou jogando dentro de uma função assíncrona sem um bloco catch ou rejeitando uma promessa que não foi tratada com .catch(). Para encerrar o processo do nó na rejeição de promessa não tratada, use o sinalizador da CLI --unhandled-rejections=strict(consulte https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode ). (ID de rejeição: 1) (nó:24104) [DEP0018] DeprecationWarning: Rejeições de promessa não tratadas estão obsoletas. No futuro, as rejeições de promessas que não forem tratadas encerrarão o processo Node.js com um código de saída diferente de zero. (nó:24104) UnhandledPromiseRejectionWarning: TimeoutError: aguardando o seletor canvasfalhou: tempo limite de 45000ms excedido

I recommend using node version 14 upwards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants