Open Adi1231234 opened 10 months ago
When I use client.logout() with authStrategy: LocalAuth with specific dataPath and clientId. I get this error:
(node:12684) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'AppState') at __puppeteer_evaluation_script__:2:26 at ExecutionContext._evaluateInternal (C:\Users\whataspp-transfer\whatsapp-web-use\software\whatsapp-web-software\node_modules\whatsapp-web.js\node_modules\puppeteer\src\common\ExecutionContext.ts:273:13) versions:
The logout function should logout and not throw exception
logout
Use client.logout() with authStrategy: LocalAuth with specific dataPath and clientId.
whatsapp-web.js: 1.22.1 puppeteer: 21.1.0
Google Chrome
Standard
Yes, I am using Multi Device
Windows 10
Same problem here
@Adi1231234 can you assign this issue for me ?
@Adi1231234 I have created a PR for the same, Please review
Is there an existing issue for this?
Describe the bug
When I use client.logout() with authStrategy: LocalAuth with specific dataPath and clientId. I get this error:
Expected behavior
The
logout
function should logout and not throw exceptionSteps to Reproduce the Bug or Issue
Use client.logout() with authStrategy: LocalAuth with specific dataPath and clientId.
whatsapp-web.js: 1.22.1 puppeteer: 21.1.0
Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
Windows 10