askrella / whatsapp-chatgpt

ChatGPT + DALL-E + WhatsApp = AI Assistant :rocket: :robot:
3.49k stars 842 forks source link

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'CallCollection') #287

Closed brickellnetworking closed 1 year ago

brickellnetworking commented 1 year ago

Getting the following now, any ideas?

`◇ Authenticated! │ ◑ Logging in..
/Users/nas/Documents/GitHub/whatsapp-chatgpt3/node_modules/whatsapp-web.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 'CallCollection') at puppeteer_evaluation_script:9:66 at ExecutionContext._evaluateInternal (/Users/nas/Documents/GitHub/whatsapp-chatgpt3/node_modules/whatsapp-web.js/node_modules/puppeteer/src/common/ExecutionContext.ts:273:13) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ExecutionContext.evaluate (/Users/nas/Documents/GitHub/whatsapp-chatgpt3/node_modules/whatsapp-web.js/node_modules/puppeteer/src/common/ExecutionContext.ts:140:12) at Client.initialize (/Users/nas/Documents/GitHub/whatsapp-chatgpt3/node_modules/whatsapp-web.js/src/Client.js:278:9)

Node.js v18.16.1 nas@nass-mac-mini whatsapp-chatgpt3 % `

dermyhzo commented 1 year ago

same issues :

│
◇  Authenticated!
│
◑  Logging in.     
/root/whatsapp-chatgpt-2/node_modules/whatsapp-web.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 'CallCollection')
    at __puppeteer_evaluation_script__:9:66
    at ExecutionContext._evaluateInternal (/root/whatsapp-chatgpt-2/node_modules/whatsapp-web.js/node_modules/puppeteer/src/common/ExecutionContext.ts:273:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at ExecutionContext.evaluate (/root/whatsapp-chatgpt-2/node_modules/whatsapp-web.js/node_modules/puppeteer/src/common/ExecutionContext.ts:140:12)
    at Client.initialize (/root/whatsapp-chatgpt-2/node_modules/whatsapp-web.js/src/Client.js:278:9)

Node.js v18.13.0
root@wa-gpt-debian:~/whatsapp-chatgpt-2# 
dermyhzo commented 1 year ago

try run npm i whatsapp-web.js

e-pano commented 1 year ago

try run npm i whatsapp-web.js

You have written this command in all the threads, but this is not the solution.

brickellnetworking commented 1 year ago

This did work for me

On Fri, Aug 18, 2023 at 4:22 AM emrekaramannnn @.***> wrote:

try run npm i whatsapp-web.js

You have written this command in all the threads, but this is not the solution.

— Reply to this email directly, view it on GitHub https://github.com/askrella/whatsapp-chatgpt/issues/287#issuecomment-1683547957, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAT7LME3QDSYBXWA7VT65T3XV4Q3ZANCNFSM6AAAAAA3OKTEOA . You are receiving this because you authored the thread.Message ID: @.***>

NavinSiHive commented 1 year ago

I am also getting this issue. Kindly can anyone help guiding the optimal solution, to get rid of this critical issue?

NavinSiHive commented 1 year ago

Whenever I am deleting message (for everyone), then this engine exits. Whereas, when I delete message (for me), then this engine does not exit, and continues to respond normal.

Can someone help to get rid of this issue ?

navopw commented 1 year ago

I fixed lots of issues. It currently works on my side.

I will close this PR for now. If you still have issues, please open another PR.

Thanks!