pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
14.62k stars 3.48k forks source link

reading 'CallCollection' #2383

Closed P3droVidal closed 11 months ago

P3droVidal commented 11 months ago

Is there an existing issue for this?

Describe the bug

It gives an error when scanning the qr code

Expected behavior

It gives an error when scanning the qr code

Steps to Reproduce the Bug or Issue

It gives an error when scanning the qr code

Relevant Code

It gives an error when scanning the qr code

Browser Type

Chromium

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

It gives an error when scanning the qr code

Additional context

It gives an error when scanning the qr code

Rex-Arnab commented 11 months ago

same here currently i have commented out the line at Injected.js // window.Store.Call = window.mR.findModule('CallCollection')[0].CallCollection;

hassanoza22 commented 11 months ago

Just started receiving this error as well... everything worked fine until an hour ago, not sure what the issue is...

tambahsaputro commented 11 months ago

same here currently i have commented out the line at Injected.js // window.Store.Call = window.mR.findModule('CallCollection')[0].CallCollection;

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'mediaStage')

P3droVidal commented 11 months ago

@Rex-Arnab what you did works but the part of sending the stickers was damaged

TypeError: mime.getType is not a function

bnoagt commented 11 months ago

Same here...

I'm using LocalAuth managed to make it run again by deleting ".wwebjs_auth" and ".wwebjs_cache" folders, then logged in again... It's just a workaround not a fix.

juliomario11 commented 11 months ago

Tengo el mismo problema, reinicié multiples veces el rhel8 pensando que eso era. Ya hice lo de injected.js y tampoco, eliminé la carpeta de auth y cache

P3droVidal commented 11 months ago

@juliomario11 actualizate a la ultima version 1.21.1-alpha.0

juliomario11 commented 11 months ago

{ sendMediaAsSticker: true }

the solution above did damage the stickers

Captura de pantalla 2023-08-08 211417

Con eso te dió? ya se soluciona el bug actualizando a esa version?

juliomario11 commented 11 months ago

El problema se me arreglo solo, solo bastó con reiniciar, eliminar el auth y el cache.. Desactivar los Iptables y volviendome a loguear con el QR

burkass commented 11 months ago

I got
Error: Evaluation failed: TypeError: r.findImpl is not a function at https://web.whatsapp.com/app.9bf7959578bdb7663582.js:51:175453 when implement that temp solution.

P3droVidal commented 11 months ago

@burkass delete the nodejs folder and the package-lock.. And reinstall. Before you delete the folders run this command.

npm cache clean --force

opssemnik commented 11 months ago

you may use an older version of the client by adding this to your client object webVersionCache: { type: 'remote', remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2332.15.html', },

burkass commented 11 months ago

@burkass delete the nodejs folder and the package-lock.. And reinstall. Before you delete the folders run this command.

npm cache clean --force

Yes correct already did that. I just hope there is solution without rescan again. Thank you

edergames29 commented 11 months ago

same error nContext.js:221 throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails)); ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'CallCollection') at puppeteer_evaluation_script:9:66 at ExecutionContext._evaluateInternal (C:\Users\Lasanha\Documents\Node JS\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ExecutionContext.evaluate (C:\Users\Lasanha\Documents\Node JS\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16) at async Client.initialize (C:\Users\Lasanha\Documents\Node JS\node_modules\whatsapp-web.js\src\Client.js:278:9)

Node.js v20.4.0

alechkos commented 11 months ago

Hi guys please check this fix #2385

kanglerian commented 11 months ago

Same the error. Why?

alechkos commented 11 months ago

@kanglerian

Same the error. Why?

There is another error not related to CallCollection

EritonSoares commented 11 months ago

npm cache clean --force

don´t work for me.