Skip to content

LocalAuth completely broken #201763

@Zhoros

Description

@Zhoros

Issue Description

See the code below, the pupetter is loaded, the whatsapp window open, but the client.on('ready') is NEVER called.

Reproduction Steps

Run the code sample below once, then exit the process, then run again. The session should persist, the whatsapp window open, but client.on('ready') is never called and I am not able to view incoming messages

Code Sample

const client = new Client({
    puppeteer: {
        executablePath: 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe',
        headless: false,
        args: [
            '--no-sandbox', 
            '--disable-setuid-sandbox'
        ]
    },
    authStrategy: new LocalAuth()
});

client.on('ready', () => {
    console.log('Client is ready!');
});

client.on('qr', qr => {
    qrcode.generate(qr, {small: true});
    console.log('QR RECEIVED');
});

User Setup

WhatsApp Type
Account Type Standard
Authentication Strategy LocalAuth
WhatsApp Web Version api doesn't work, but it's the latest one
whatsapp-web.js Version whatsapp-web.js: ^1.34.7
Environment Version
Browser Type Ms. Edge
Browser Version Latest
Phone OS Version -
Running OS Version windows 11
Node.js Version v22.19.0

Checklist

  • I use the latest released version of whatsapp-web.js.
  • I have searched existing issues and confirmed this is not a duplicate.
  • I have verified this is a library issue, not a problem with my code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is brokenissued highHigh impact issuetypingsType definitions

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions