#Puppeteer Error in Client connection

8 messages · Page 1 of 1 (latest)

sonic shadow
#

I am using this code to connect to the client:
const client = new Client({
authStrategy: new LocalAuth({
dataPath: "WhatsappAuth",
}),
puppeteer: {
args: ["--no-sandbox", "--disable-setuid-sandbox"],
},
webVersion: "2.2412.54",
webVersionCache: {
type: "remote",
remotePath:
"https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2412.54.html",
},
});

client.initialize().catch((err) => {
console.error("Initialization error:", err);
});

But after scanning the QR Code. It gives the following error:

prime ice
#

read #general

sonic shadow
#

Recieved this

prime ice
#

install git first

sonic shadow
#

Done already

prime ice
#

did u delete the node_modules folder and wwebjs_auth folder?

sonic shadow
#

Did all the steps all again.This time ,QR got scanned and client got connected.
but after i closed the application and restarted it, i got this error:

Attained other images also fo more clarity.

#

Update:The error was not interfering with the client.Just removed......// client.initialize().catch((err) => {
// console.error("Initialization error:", err);
// });

and the client is working fine.