evolution-api icon indicating copy to clipboard operation
evolution-api copied to clipboard

Unable to connect to instace

Open teovillanueva opened this issue 1 year ago • 6 comments

Welcome!

  • [x] Yes, I have searched for similar issues on GitHub and found none.

What did you do?

Hello! I've deployed successfully evolution api v2.3.1 to AWS ECS.

When I create an instance and try to scan the QR Code, nothing happens. I've got it to show as connected sometimes but the inside the whatsapp app it should app as syncing forever.

This is how I'm deploying my container

export const service = new sst.aws.Service("EvolutionService", {
  cluster,
  link: [postgres, redis],
  loadBalancer: {
    rules: [{ listen: "443/https", forward: "8080/http" }],
    domain,
  },
  containers: [
    {
      environment: {
        SERVER_URL: `https://${domain?.name}`,
        DATABASE_URL,
        DATABASE_CONNECTION_URI: DATABASE_URL,
        DATABASE_PROVIDER: "postgresql",
        CACHE_REDIS_ENABLED: "true",
        EVOAI_ENABLED: "true",
        CACHE_REDIS_URI: REDIS_URL,
        AUTHENTICATION_API_KEY: authenticationApiKey.value,
        LOG_LEVEL: "ERROR,WARN,DEBUG,INFO,LOG,VERBOSE,DARK,WEBHOOKS,WEBSOCKET",
        LOG_COLOR: "true",
        LOG_BAILEYS: "error",
        DEL_INSTANCE: "false",
      },
      name: "EvolutionContainer",
      image: "evoapicloud/evolution-api:v2.3.1",
      cpu: "0.25 vCPU",
      memory: "0.5 GB",
    },
  ],
});

And this are some of the logs i've gathered

{"level":50,"time":1754435407444,"pid":189,"hostname":"ip-10-0-10-222.ec2.internal","node":{"tag":"stream:error","attrs":{"code":"515"}},"msg":"stream errored out"}
[Evolution API]  [be1ec712-f428-404c-b3f0-4a002f983ddc]  v2.3.1  189   -  Tue Aug 05 2025 20:10:07     INFO   [ChannelStartupService]  [string]  Browser: Evolution API,Chrome,5.10.238-234.956.amzn2.x86_64 
[Evolution API]  [be1ec712-f428-404c-b3f0-4a002f983ddc]  v2.3.1  189   -  Tue Aug 05 2025 20:10:07     INFO   [ChannelStartupService]  [string]  Baileys version: 2.3000.1025534275 
[Evolution API]  [be1ec712-f428-404c-b3f0-4a002f983ddc]  v2.3.1  189   -  Tue Aug 05 2025 20:10:07     INFO   [ChannelStartupService]  [string]  Group Ignore: false 

What did you expect?

I expected it to connect

What did you observe instead of what you expected?

It sometimes connect and sometimes not.

Screenshots/Videos

No response

Which version of the API are you using?

2.3.1

What is your environment?

Docker

Other environment specifications

AWS ECS

If applicable, paste the log output

{"level":50,"time":1754435407444,"pid":189,"hostname":"ip-10-0-10-222.ec2.internal","node":{"tag":"stream:error","attrs":{"code":"515"}},"msg":"stream errored out"} [Evolution API] [be1ec712-f428-404c-b3f0-4a002f983ddc] v2.3.1 189 - Tue Aug 05 2025 20:10:07 INFO [ChannelStartupService] [string] Browser: Evolution API,Chrome,5.10.238-234.956.amzn2.x86_64 [Evolution API] [be1ec712-f428-404c-b3f0-4a002f983ddc] v2.3.1 189 - Tue Aug 05 2025 20:10:07 INFO [ChannelStartupService] [string] Baileys version: 2.3000.1025534275 [Evolution API] [be1ec712-f428-404c-b3f0-4a002f983ddc] v2.3.1 189 - Tue Aug 05 2025 20:10:07 INFO [ChannelStartupService] [string] Group Ignore: false

Additional Notes

No response

teovillanueva avatar Aug 06 '25 00:08 teovillanueva

Bom dia

Tambem estou com erro em instancias novas que estou criando. So consigo enviar mensagem pelo n8n utilizando uma instancia ja criada.

"404 - {"status":404,"error":"Not Found","response":{"message":["Cannot POST /manager/message/sendText/Efluxo_comercial"]}}"

marcelomagfor avatar Aug 06 '25 11:08 marcelomagfor

This is happening both in v2.3.0 and v2.3.1.

teovillanueva avatar Aug 06 '25 15:08 teovillanueva

Any solution?

hericogimo avatar Aug 06 '25 19:08 hericogimo

@marcelomagfor is there any solution for that? I am also unable to get QR code

Sajidali001 avatar Aug 14 '25 05:08 Sajidali001

Any solution for this? I am using v2.2.3 and CONFIG_SESSION_PHONE_VERSION=2.3000.1025110696 after trying with newer versions and different CONFIG_SESSION_PHONE_VERSION even leaving it empty

aherrh02 avatar Aug 25 '25 07:08 aherrh02

I have the same issue, any solution ?

Hatem-UrWave avatar Nov 11 '25 06:11 Hatem-UrWave