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

When I'm logging out of WhatsApp, the "authenticated" event is being triggered. #3173

Open
1 task done
Esdras-Henrique3k opened this issue Jul 2, 2024 · 7 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@Esdras-Henrique3k
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

From yesterday to today, when I started my client, every time I logged out directly on my phone, it triggered the "auth" event instead of "disconnect." With headless set to false, I can see the endless logout.

const puppeteerOptions = _.merge({
headless: false,
//viewBrowser: false,
//defaultViewport: null,
//useChrome: false,
args: [
// "--headless",
"--disable-extensions",
"--no-sandbox",
"--disable-setuid-sandbox",
"--no-first-run",
// "--disable-dev-shm-usage",
"--disable-accelerated-2d-canvas",
"--disable-gpu",
//"--single-process",
]
}, config.lib.puppeteer);
that.client = new Client({
//takeoverOnConflict: true,
restartOnAuthFail: true,
puppeteer: puppeteerOptions,
authStrategy: new LocalAuth({
clientId: that.id,
dataPath: that.options.connPath
}),
webVersionCache: {
type: "remote",
remotePath: https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.3000.1014590669-alpha.html,
},
});

Expected behavior

When logging out directly on the phone, the "disconnect" event should be triggered instead of the "auth" event. The logout process should complete normally without any issues. When running in headless mode set to false, there should be no endless logout loop.

Steps to Reproduce the Bug or Issue

  1. Login in App
  2. Logout
  3. Reset client state to auth

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Mac
whatsapp-web.js: 1.24
Webversion: 2.3000.1014590669-alpha
node: 20.5.1

Additional context

No response

@Esdras-Henrique3k Esdras-Henrique3k added the bug Something isn't working label Jul 2, 2024
@sfbarragan845
Copy link

I have the same problem

@s1lviuz

This comment was marked as duplicate.

@ardhityawiedhairawan

This comment was marked as off-topic.

@Esdras-Henrique3k
Copy link
Author

Try this one : #2816

Don’t fixed, I already do that to fix other error

@MoisesAlvarenga
Copy link

Enfrento o mesmo problema.

@giacas
Copy link

giacas commented Jul 4, 2024

Same problem here.

@RAKESHSUVIDYA
Copy link

same problem

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

No branches or pull requests

8 participants
@giacas @ardhityawiedhairawan @RAKESHSUVIDYA @MoisesAlvarenga @s1lviuz @sfbarragan845 @Esdras-Henrique3k and others