Skip to content

Issue about the pairing feature since few days #9

Description

@ljs19923

Is there an existing issue for this?

  • I have searched the existing issues.

Is this a problem caused by your code, or is it specifically because of the library?

  • I have double-checked my code carefully.

Describe the bug.

Since a few days, the pairWithPhoneNumber feature throws a Puppeteer evaluation error.
This happens right after the client initializes and tries to pair automatically using the phone number.

The full error is:
Error: Evaluation failed: at ExecutionContext._ExecutionContext_evaluate (...) at processTicksAndRejections (node:internal/process/task_queues:95:5) at async Client.requestPairingCode (...)

Expected Behavior

As a user, I expected the library to generate and send the pairing code to my phone via WhatsApp, without throwing any puppeteer error.

Steps to Reproduce the Bug or Issue

onst client = new Client({
authStrategy: new LocalAuth({ clientId: "clientServer" }),
puppeteer: {
headless: true,
args: ["--no-sandbox", "--disable-setuid-sandbox"],
},
pairWithPhoneNumber: {
phoneNumber: "19056070420", // Valid number in international format
showNotification: true,
intervalMs: 180000,
},
});

client.initialize();

WhatsApp Account Type

WhatsApp Business

Browser Type

Chromium (via puppeteer)

Operation System Type

Docker + Ubuntu 22.04 (Node running in a container)

Phone OS Type

Iphone

WhatsApp-Web.js Version

"whatsapp-web.js": "github:MobCode100/whatsapp-web.js"

WhatsApp Web Version

Node.js Version

20

Authentication Strategy

LocalAuth

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions