wppconnect icon indicating copy to clipboard operation
wppconnect copied to clipboard

La aplicación se desvincula aleatoriamente

Open m3ck0 opened this issue 1 year ago • 3 comments

Description

La sesión se desconecta aleatoriamente cuando reinicio la aplicación.(The session disconnects randomly when I restart the application.)

Este comportamiento no es esperado porque normalmente en Whatsapp web no tengo que volver a sincronizar cuando reinicio la computadora. (This behavior is not expected because normally in Whatsapp web I don't have to re-pair when I restart the computer)

¿Qué está sucediendo en este caso que causa esto y cómo puedo manejarlo, si tiene alguna sugerencia? (What is happening in this case which causes this and how I can handle it, if you have any suggestions?)

Environment

  • WPPConnect version(s): 1.28.0
  • WA-JS version(s): 2.24.8
  • Browser: Chrome XX / Chromium XX (latest, as per this repo tag: v.2.2.5)
  • OS: Ubuntu 22
  • Node version: Node 18.18 (docker node:lts-alpine-18)
  • WhatsApp version: 2.23.19.84 (Sep28, 2023)
  • MultiDevice (BETA): no

Steps to Reproduce

  1. empareje la aplicación con wppconnect usando la funcionalidad webhook (pair app with wppconnect using webhook functionality)
  2. reinicie el contenedor Docker varias veces con varias horas de intervalo (restart Docker container multiple times with several hours interval)
  3. El WPPConnect se desempareja (WPPConnect unpairs)

Log Output

Los estados de la sesión tienen este orden después del reinicio. (Session states have this order after reboot.)

  1. inChat
  2. desconnectedMobile
  3. browserClose
  4. notLogged
  5. qrReadError
  6. browserClose

Your Code

No tengo ninguna modificación de código excepto la configuración.(I don't have any code modification except configuration.)

Aquí solo se enumeran los valores modificados en el archivo config.ts (Only the modified values in the file are listed here):

{
    ...
    deviceName: 'Desktop',
    webhook: {
       url: 'link to my webhook',
    }
}

Additional context / Screenshot

  • Estoy usando Docker con la funcionalidad de webhook habilitada (I am using Docker with webhook functionality enabled)
  • La persistencia del volumen está configurada correctamente, porque en la mayoría de los reinicios la sesión se vuelve a conectar. (Volume persistence is configured correctly, because on most reboots the session reconnects.)

m3ck0 avatar Oct 06 '23 05:10 m3ck0

Yes, I do have this issue and it occur very randomly, last time is RAM issue so I upgraded my RAM, but now RAM is stable and it is still happening, do anyone have idea how to solve it? I would like it to connect without logout randomly.

momokang avatar Oct 24 '23 02:10 momokang

Yes, I do have this issue and it occur very randomly, last time is RAM issue so I upgraded my RAM, but now RAM is stable and it is still happening, do anyone have idea how to solve it? I would like it to connect without logout randomly.

Could you post your machine's configurations here?

icleitoncosta avatar Mar 06 '24 21:03 icleitoncosta

@icleitoncosta what kind of configuration details you'd like to know? For resources we have tried really high-end machines (4vCPU, 16GB memory) for a single device to make sure that the resources were not the problem & utilization was always low.

m3ck0 avatar Mar 07 '24 13:03 m3ck0