Skip to content

Could not link the device via QR code #2285

@dinesh-suthar-cdp

Description

@dinesh-suthar-cdp

Welcome!

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

What did you do?

These are my docker-compose.yml and .env files

docker-compose.yml

version: '3.9'

services:
  evolution-api:
    container_name: evolution_api
    image: evoapicloud/evolution-api:v2.3.6
    restart: always
    ports:
      - "8080:8080"
    env_file:
      - .env
    depends_on:
      - postgres
      - redis
    environment:
      TZ: "Asia/Kolkata"
    dns:
      - 8.8.8.8
      - 8.8.4.4

  evolution-manager:
    container_name: evolution_manager
    image: evoapicloud/evolution-manager:latest
    restart: always
    ports:
      - "3000:3000"
    environment:
      BACKEND_URL: "http://evolution-api:8080"
      TZ: "Asia/Kolkata"
    depends_on:
      - evolution-api
    volumes:
      - ./nginx.conf:/etc/nginx/conf.d/nginx.conf:ro

  postgres:
    image: postgres:16-alpine
    container_name: evolution_postgres
    restart: always
    environment:
      POSTGRES_DB: "cloudstation"
      POSTGRES_USER: "cloudstation"
      POSTGRES_PASSWORD: "XYXYXYXYXY"
      TZ: "Asia/Kolkata"
    volumes:
      - evolution_postgres:/var/lib/postgresql/data
    ports:
      - "5432:5432"
   

  redis:
    image: redis:7
    container_name: evolution_redis
    restart: always
    command: ["redis-server", "--requirepass", "XYXYXYXYXY"]
    ports:
      - "6379:6379"
    volumes:
      - evolution_redis:/data
    environment:
      TZ: "Asia/Kolkata"

volumes:
  evolution_postgres:
  evolution_redis:

.env

AUTHENTICATION_API_KEY=XYXYXYXYXY
AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=false

CACHE_REDIS_ENABLED=true
CACHE_REDIS_HOST=evolution_redis
CACHE_REDIS_PORT=6379
CACHE_REDIS_PASSWORD=XYXYXYXYXY
CACHE_REDIS_PREFIX_KEY=true
CACHE_REDIS_SAVE_INSTANCES=true
CACHE_REDIS_TTL=604800
CACHE_REDIS_URI=redis://redis:6379/6

CONFIG_SESSION_PHONE_CLIENT=Evolution API
CONFIG_SESSION_PHONE_NAME=Chrome
CONFIG_SESSION_PHONE_VERSION=2.3000.1029560485
BAILEYS_VERSION=2.3000.1029560485

CORS_CREDENTIALS=true
CORS_METHODS=GET,POST,PUT,DELETE
CORS_ORIGIN=*

DATABASE_PROVIDER=postgresql
DATABASE_CONNECTION_URI=postgresql://cloudstation:XYXYXYXYXY@postgres:5432/cloudstation?schema=public
DATABASE_CONNECTION_CLIENT_NAME=evolution_exchange
DATABASE_SAVE_DATA_CHATS=true
DATABASE_SAVE_DATA_CONTACTS=true
DATABASE_SAVE_DATA_INSTANCE=true
DATABASE_SAVE_DATA_NEW_MESSAGE=true
DATABASE_SAVE_MESSAGE_UPDATE=true

DEL_INSTANCE=false

EVENT_EMITTER_MAX_LISTENERS=100

LOG_BAILEYS=error
LOG_COLOR=true
LOG_LEVEL=ERROR,WARN,INFO

QRCODE_COLOR=#175197
QRCODE_LIMIT=30

SERVER_PORT=8080
SERVER_TYPE=http
SERVER_URL=https://whatsapp.yola.in

WEBHOOK_EVENTS_CONNECTION_UPDATE=true
WEBHOOK_EVENTS_MESSAGES_SET=true
WEBHOOK_EVENTS_MESSAGES_UPSERT=true
WEBHOOK_EVENTS_QRCODE_UPDATED=true
WEBHOOK_GLOBAL_ENABLED=false


REDIS_ENABLED=true
REDIS_HOST=evolution_redis
REDIS_PORT=6379
REDIS_PASSWORD=XYXYXYXYXY

I am adding my Indian number as 919833XXXXXX (+91 - India code so prefixed 91)

What did you expect?

Since most of the users are non-english speaking I am unable to understand your language apart from english, I am expecting the answers in English so to help other English speaking users.

What did you observe instead of what you expected?

I am able to generate QR on evolution manager but every time I am scanning gives me Could not link device, try again or please check your internet connection and try again.

Screenshots/Videos

No response

Which version of the API are you using?

evoapicloud/evolution-api:v2.3.6

What is your environment?

Docker

Other environment specifications

No response

If applicable, paste the log output

No response

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions