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

client.logout() Exception #2442

Open
1 task done
Adi1231234 opened this issue Aug 24, 2023 · 3 comments · May be fixed by #2447
Open
1 task done

client.logout() Exception #2442

Adi1231234 opened this issue Aug 24, 2023 · 3 comments · May be fixed by #2447
Labels
bug Something isn't working

Comments

@Adi1231234
Copy link

Adi1231234 commented Aug 24, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

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:

Expected behavior

The logout function should logout and not throw exception

Steps 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

@Adi1231234 Adi1231234 added the bug Something isn't working label Aug 24, 2023
@gamafolk
Copy link

Same problem here

@joaoVCNN
Copy link

@Adi1231234 can you assign this issue for me ?

@ayushmourya
Copy link

@Adi1231234 I have created a PR for the same, Please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants