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: