wppconnect-team / wppconnect

WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many other things, use your imagination
https://wppconnect.io
Other
1.85k stars 321 forks source link

Random Disonnect #2295

Open aleeixoj opened 1 month ago

aleeixoj commented 1 month ago

Description

I have a homologation server for testing in my store and I have random disconnections. When I connect, it works normally, I send messages, audios, videos, etc. However, after a random time I receive a disconnection log in the lib, but in the App it remains connected. Then I need to generate a new QRCode to synchronize again.

Environment

Steps to Reproduce

  1. Connect Device
  2. Send messages
  3. Stay afk

Log Output

Captura de tela de 2024-07-29 08-46-41

Your Code

 create({
      session,
      tokenStore: myTokenStore,
      catchQR: qr,
      statusFind: status,
      autoClose: 1000 * 60 * 3,
      logQR: false,
      headless: true,
      useChrome: true,
      puppeteerOptions: {
        userDataDir: `${env.bot.tokenFolder.path}/${env.bot.tokenFolder.name}/${session}`, // or your custom directory
        args: [
          '--no-sandbox',
          '--disable-setuid-sandbox',
          '--disable-dev-shm-usage',
          '--disable-accelerated-2d-canvas',
          '--no-first-run',
          '--no-zygote',
          '--disable-gpu',
        ],
      },
      whatsappVersion: whatsAppVersion,
    })
      .then((client) => start(client))
      .catch((error) => console.error(error))
devactivity-app[bot] commented 1 month ago

@aleeixoj, ⭐3 XP earned, 🏆First Issue Created completed! Contribute more to raise your XP/Level, complete challenges for extra achievements! [Sign up for personal dashboard]

icon
aryanbhasin commented 1 month ago

any fix here?

ethan2cl commented 1 week ago

i got the same problem