#Client desconect and freeze

4 messages · Page 1 of 1 (latest)

thorny wharf
#

In last version client stayed up when running on pm2, but in this version the bot just freeze, and continue running, nothing changed just the version, any ideas?

thorny wharf
#

are you all using function to keep session alive?

supple yoke
#

can you provide your client initialization code?

thorny wharf
#

sure

const client = new Client({
restartOnAuthFail: true,
puppeteer: {
executablePath: "/usr/bin/chromium-browser",
headless: true,
args: [
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-dev-shm-usage",
"--disable-accelerated-2d-canvas",
"--no-first-run",
"--no-zygote",
"--single-process", // <- this one doesn't works in Windows
"--disable-gpu",
],
},
authStrategy: new LocalAuth({
dataPath: path.join(__dirname, "/wwebjs_auth/session/session"),
clientId: "client-two",
}),
});