EvolutionAPI / evolution-api

Evolution API is an open-source WhatsApp integration API
https://evolution-api.com
Other
2.01k stars 1.16k forks source link

Loop connectando, connectado, desconectado #765

Open TiagoGouvea opened 3 months ago

TiagoGouvea commented 3 months ago

Welcome!

What did you do?

Uma instância parecia não estar respondendo, então entrei no manager e mandei reiniciar a instância, para ver o que acontecia.

Ela ficou em "conectando" se não me engano e não avançava. Fui olhar no console do servidor e vi que ela passava continuamente pelos 3 estados: close,connecting, open.. dai começava novamente, sem parar.

Eu tinha incluído um Rabbit pra connection.update e chegaram cerca de 2000 registros em poucos minutos.

Resetei o serviço e parou.

What did you expect?

Ao reiniciar, esperava apenas que ele desse um "restart" ali na conexão da instãncia.

What did you observe instead of what you expected?

Ficou no loop infernal.

Screenshots/Videos

No response

Which version of the API are you using?

v1.8.2

What is your environment?

Windows

Other environment specifications

Linux

If applicable, paste the log output

Retirei do log algumas linhas pra caber aqui na issue. :)

[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     LOG   [ChannelStartupService]  [object]
{
  local: 'ChannelStartupService.sendData-RabbitMQ',
  event: 'connection.update',
  instance: 'tiago-dev',
  data: { instance: 'tiago-dev', state: 'connecting', statusReason: 200 },
  server_url: 'http://localhost:8080',
  apikey: 'asassasasasasasasa',
  date_time: '2024-08-13T19:41:48.490Z',
  sender: '553299883755@s.whatsapp.net'
}
{"level":50,"time":1723588908705,"pid":1,"hostname":"11d6977f7b33","node":{"tag":"stream:error","attrs":{},"content":[{"tag":"conflict","attrs":{"type":"replaced"}}]},"msg":"stream errored out"}
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Event received: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Listening event: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection found[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [AuthRepository]  [string]  finding auth
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [AuthRepository]  [string]  finding auth in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection closed
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Reconnecting to whatsapp
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connecting to whatsapp
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ProxyRepository]  [string]  finding proxy
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ProxyRepository]  [string]  finding proxy in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Loading chamaai
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChamaaiRepository]  [string]  finding chamaai
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChamaaiRepository]  [string]  finding chamaai in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Defining auth state
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Database enabled
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     LOG   [ChannelStartupService]  [object]
{
  local: 'ChannelStartupService.sendData-RabbitMQ',
  event: 'connection.update',
  instance: 'tiago-dev',
  data: { instance: 'tiago-dev', state: 'close', statusReason: 440 },
  server_url: 'http://localhost:8080',
  apikey: 'asassasasasasasasa',
  date_time: '2024-08-13T19:41:48.714Z',
  sender: '553299883755@s.whatsapp.net'
}[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot days limit import messages: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot loaded
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Rabbitmq enabled: true
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Rabbitmq events: QRCODE_UPDATED,MESSAGES_UPSERT,CONNECTION_UPDATE,CALL,NEW_JWT_TOKEN,PRESENCE_UPDATE
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Rabbitmq loaded
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Sqs enabled: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Event received: creds.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     INFO   [ChannelStartupService]  [string]  Browser: EvolutionAPI,Chrome,6.5.0-44-generic
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Listening event: creds.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     INFO   [ChannelStartupService]  [string]  Baileys version: 2,2413,1
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Creating socket
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Socket created
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Initializing event handler
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Socket event handler initialized
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Event received: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection found[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [AuthRepository]  [string]  finding auth
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [AuthRepository]  [string]  finding auth in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     LOG   [ChannelStartupService]  [object]
{
  local: 'ChannelStartupService.sendData-RabbitMQ',
  event: 'connection.update',
  instance: 'tiago-dev',
  data: { instance: 'tiago-dev', state: 'connecting', statusReason: 200 },
  server_url: 'http://localhost:8080',
  apikey: 'asassasasasasasasa',
  date_time: '2024-08-13T19:41:48.797Z',
  sender: '553299883755@s.whatsapp.net'
}
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Event received: creds.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Event received: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Event received: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Listening event: creds.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Listening event: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Listening event: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection found[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [AuthRepository]  [string]  finding auth
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [AuthRepository]  [string]  finding auth in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection opened
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Creating jid with number: 553299883755@s.whatsapp.net
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Number already contains @g.us or @s.whatsapp.net or @lid
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting profile picture with jid: 553299883755@s.whatsapp.net
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting profile picture url
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     LOG   [ChannelStartupService]  [object]
{
  local: 'ChannelStartupService.sendData-RabbitMQ',
  event: 'connection.update',
  instance: 'tiago-dev',
  data: { instance: 'tiago-dev', state: 'open', statusReason: 200 },
  server_url: 'http://localhost:8080',
  apikey: 'asassasasasasasasa',
  date_time: '2024-08-13T19:41:48.860Z',
  sender: '553299883755@s.whatsapp.net'
}
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Event received: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Listening event: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Event received: creds.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Listening event: creds.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Event received: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Profile picture not found
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     INFO   [ChannelStartupService]  [string]
  ┌──────────────────────────────┐
  │    CONNECTED TO WHATSAPP     │
  └──────────────────────────────┘
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     INFO   [ChannelStartupService]  [string]
        wuid: 553299883755
        name: tiago-dev
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Listening event: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection found[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [AuthRepository]  [string]  finding auth
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [AuthRepository]  [string]  finding auth in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection closed
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Reconnecting to whatsapp
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connecting to whatsapp[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Loading chatwoot
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChatwootRepository]  [string]  finding chatwoot
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChatwootRepository]  [string]  finding chatwoot in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Loading websocket
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [WebsocketRepository]  [string]  finding websocket
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [WebsocketRepository]  [string]  finding websocket in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Loading rabbitmq
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [RabbitmqRepository]  [string]  finding rabbitmq
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [RabbitmqRepository]  [string]  finding rabbitmq in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Loading sqs
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [SqsRepository]  [string]  finding sqs
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [SqsRepository]  [string]  finding sqs in db[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Loading proxy
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ProxyRepository]  [string]  finding proxy
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ProxyRepository]  [string]  finding proxy in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Loading chamaai
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChamaaiRepository]  [string]  finding chamaai
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChamaaiRepository]  [string]  finding chamaai in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Defining auth state
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Database enabled
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     LOG   [ChannelStartupService]  [object]
{
  local: 'ChannelStartupService.sendData-RabbitMQ',
  event: 'connection.update',
  instance: 'tiago-dev',
  data: { instance: 'tiago-dev', state: 'close', statusReason: 428 },
  server_url: 'http://localhost:8080',
  apikey: 'asassasasasasasasa',
  date_time: '2024-08-13T19:41:48.908Z',
  sender: '553299883755@s.whatsapp.net'
}
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot enabled: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot account id: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot token: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot url: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot inbox name: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot sign msg: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot number: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot reopen conversation: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot conversation pending: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot merge brazil contacts: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot import contacts: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot import messages: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot days limit import messages: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chatwoot loaded
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Websocket enabled: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Websocket events: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Websocket loaded
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Rabbitmq enabled: true
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Rabbitmq events: QRCODE_UPDATED,MESSAGES_UPSERT,CONNECTION_UPDATE,CALL,NEW_JWT_TOKEN,PRESENCE_UPDATE
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Rabbitmq loaded
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Sqs enabled: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Sqs events: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Sqs loaded[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Proxy enabled: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Proxy proxy: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Proxy loaded
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chamaai enabled: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chamaai url: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chamaai token: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chamaai waNumber: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chamaai answerByAudio: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Chamaai loaded
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     INFO   [ChannelStartupService]  [string]  Browser: EvolutionAPI,Chrome,6.5.0-44-generic
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     INFO   [ChannelStartupService]  [string]  Baileys version: 2,2413,1
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Creating socket
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Socket created
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Initializing event handler
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Socket event handler initialized
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Event received: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Listening event: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Connection found[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [AuthRepository]  [string]  finding auth
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [AuthRepository]  [string]  finding auth in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:48     LOG   [ChannelStartupService]  [object]
{
  local: 'ChannelStartupService.sendData-RabbitMQ',
  event: 'connection.update',
  instance: 'tiago-dev',
  data: { instance: 'tiago-dev', state: 'connecting', statusReason: 200 },
  server_url: 'http://localhost:8080',
  apikey: 'asassasasasasasasa',
  date_time: '2024-08-13T19:41:48.972Z',
  sender: '553299883755@s.whatsapp.net'
}
{"level":50,"time":1723588909430,"pid":1,"hostname":"11d6977f7b33","node":{"tag":"stream:error","attrs":{},"content":[{"tag":"conflict","attrs":{"type":"replaced"}}]},"msg":"stream errored out"}
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Event received: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Listening event: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Connection update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Connection found[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [AuthRepository]  [string]  finding auth
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [AuthRepository]  [string]  finding auth in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Connection closed
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Reconnecting to whatsapp
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Connecting to whatsapp[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Loading chatwoot
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChatwootRepository]  [string]  finding chatwoot
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChatwootRepository]  [string]  finding chatwoot in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Loading websocket
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [WebsocketRepository]  [string]  finding websocket
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [WebsocketRepository]  [string]  finding websocket in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Loading rabbitmq
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [RabbitmqRepository]  [string]  finding rabbitmq
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [RabbitmqRepository]  [string]  finding rabbitmq in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Loading sqs
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [SqsRepository]  [string]  finding sqs
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [SqsRepository]  [string]  finding sqs in db[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Loading proxy
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ProxyRepository]  [string]  finding proxy
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ProxyRepository]  [string]  finding proxy in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Loading chamaai
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChamaaiRepository]  [string]  finding chamaai
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChamaaiRepository]  [string]  finding chamaai in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Defining auth state
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Database enabled
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     LOG   [ChannelStartupService]  [object]
{
  local: 'ChannelStartupService.sendData-RabbitMQ',
  event: 'connection.update',
  instance: 'tiago-dev',
  data: { instance: 'tiago-dev', state: 'close', statusReason: 440 },
  server_url: 'http://localhost:8080',
  apikey: 'asassasasasasasasa',
  date_time: '2024-08-13T19:41:49.439Z',
  sender: '553299883755@s.whatsapp.net'
}
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot enabled: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot account id: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot token: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot url: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot inbox name: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot sign msg: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot number: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot reopen conversation: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot conversation pending: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot merge brazil contacts: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot import contacts: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot import messages: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot days limit import messages: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Chatwoot loaded
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Websocket enabled: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Websocket events: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Websocket loaded
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Rabbitmq enabled: true
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Rabbitmq events: QRCODE_UPDATED,MESSAGES_UPSERT,CONNECTION_UPDATE,CALL,NEW_JWT_TOKEN,PRESENCE_UPDATE
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Rabbitmq loaded
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Sqs enabled: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Sqs events: undefined
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Sqs loaded[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     INFO   [ChannelStartupService]  [string]  Browser: EvolutionAPI,Chrome,6.5.0-44-generic
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     INFO   [ChannelStartupService]  [string]  Baileys version: 2,2413,1
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Creating socket
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Socket created
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Initializing event handler
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Socket event handler initialized
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Event received: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Event received: creds.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Listening event: connection.update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Connection update
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Connection found[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [AuthRepository]  [string]  finding auth
[Evolution API]    v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [AuthRepository]  [string]  finding auth in db
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting instance name
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     VERBOSE   [ChannelStartupService]  [string]  Getting remoteJid of instance
[Evolution API]  [tiago-dev]  v1.8.2  1   -  Tue Aug 13 2024 19:41:49     LOG   [ChannelStartupService]  [object]
{
  local: 'ChannelStartupService.sendData-RabbitMQ',
  event: 'connection.update',
  instance: 'tiago-dev',
  data: { instance: 'tiago-dev', state: 'connecting', statusReason: 200 },
  server_url: 'http://localhost:8080',
  apikey: 'asassasasasasasasa',
  date_time: '2024-08-13T19:41:49.528Z',
  sender: '553299883755@s.whatsapp.net'
}

Additional Notes

É apresentado um erro no console {"level":50,"time":1723588908705,"pid":1,"hostname":"11d6977f7b33","node":{"tag":"stream:error","attrs":{},"content":[{"tag":"conflict","attrs":{"type":"replaced"}}]},"msg":"stream errored out"} que também foi citado em #272

matheustcw4 commented 2 months ago

Conseguiu resolver ?

TiagoGouvea commented 2 months ago

"Resetei o serviço e parou"

dpaes commented 2 months ago

@TiagoGouvea peço que tentei subir um evolution na versão 1.8.1 e veja se tem o mesmo problema. Normalmente quando "buga" uma instancia, eu deleto ela e crio outra com o mesmo nome para ter o mesmo endpoint do webhook que vai pro chatwoot, dai não "perco" a caixa de entrada do chatwoot por conta de organização. Se não quiser tentar a 1.8.1, n tem problema, mas creio que ela é mais estável que a 1.8.2.

PauloAK commented 2 months ago

Tive o mesmo problema hoje, estou usando a 1.8.2. Um cliente conectou e a api entrou nesse loop de conectando, conectado e desconectado na instancia dele. So resolveu apagando a instância e criando uma nova.

Também notei que é possível replicar o problema da seguinte forma:

Conseguem confirmar se o problema também acontece para vocês seguindo esses passos? @TiagoGouvea @dpaes

De momento não consigo voltar para a 1.8.1 pois estou utilizando o recurso de conexão por código. Vou testar a v2 mais tarde pra ver se o problema acontece nela também.

TiagoGouvea commented 2 months ago

Não chamei esse endpoint.. aconteceu em uma instância que já existia fazia um tempo. Não uso nenhuma chamada de controlar a instancia pelo REST, só receber mensagens por rabbit, então eu não alterei nada lá.

fernandovenancio commented 3 weeks ago

Mesmo problema aqui, estou usando a 1.8.2.

Fica em looping, CPU foi a "100%" e teve momentos que travou geral, no WhatsApp em aparelhos conectados continua como conectado e não desconecta.

O bug do looping muda os 03 estados (close,connecting, open) no mesmo instante, enviando o status para o webhook full time, não é espaçado.

E o evento "qrcode.updated" também está disparando dando erro 500 ou 200 com o base64:

 event:qrcode.updated
instance:xxxx
data
message:QR code limit reached, please login again
statusCode:500
date_time:2024-11-10T11:59:35.149Z
sender:xxxxxx@s.whatsapp.net
server_url:http://localhost:9091
apikey:xxxx

Entrou em looping depois do envio da primeira mensagem via API (não do contato como ativo), antes da primeira mensagem, ficou conectado normalmente, sem eventos disparados.

O looping parou depois que no manager, dando F5 até conseguir ficar no status de "open" do looping, consegui clicar em desconectar e realmente desconectou, mas ao ler o QR Code novamente o looping continua.

@DavidsonGomes alguma sugestão? Foi realizada alguma correção em versões novas?

pauloegk commented 2 weeks ago

Fala manos, esse problema ai que vocês estão tendo é relacionado a conflito de conexão.

Depois que chamar o instance.client?.end(new Error('restart'));

Coloca: await delay(1000);

ai sim chama o: await this.connectToWhatsapp(instanceId)

testa ai me avisa se deu bom..

TiagoGouvea commented 6 days ago

Estou usando a versão 2, então não tenho como validar mais a solução ou não.