waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS] - Problem on labels

Open felippebueno opened this issue 11 months ago • 8 comments

Describe the bug

Endpoint failures:

POST - /api/{session}/labels - Create a new label PUT - /api/{session}/labels/{labelId} - Update a label DELETE - /api/{session}/labels/{labelId} - Delete the label PUT - /api/{session}/labels/chats/{chatId} - Save labels for the chat

Version

{
    "version": "2025.11.4",
    "engine": "GOWS",
    "tier": "PLUS",
    "browser": null
}

Steps

Response

{
    "statusCode": 500,
    "timestamp": "2025-12-04T14:32:03.313Z",
    "exception": {
        "message": "2 UNKNOWN: error upserting label: server returned error updating app state: <collection name=\"regular\" type=\"error\"><error code=\"409\" text=\"conflict\"/><patches><patch><!-- 252 bytes --></patch></patches></collection>",
        "code": 2,
        "details": "error upserting label: server returned error updating app state: <collection name=\"regular\" type=\"error\"><error code=\"409\" text=\"conflict\"/><patches><patch><!-- 252 bytes --></patch></patches></collection>",
        "metadata": {},
        "name": "Error",
        "stack": "Error: 2 UNKNOWN: error upserting label: server returned error updating app state: <collection name=\"regular\" type=\"error\"><error code=\"409\" text=\"conflict\"/><patches><patch><!-- 252 bytes --></patch></patches></collection>\n    at callErrorFromStatus (/app/node_modules/@grpc/grpc-js/build/src/call.js:32:19)\n    at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client.js:193:76)\n    at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:367:141)\n    at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:327:181)\n    at /app/node_modules/@grpc/grpc-js/build/src/resolving-call.js:135:78\n    at process.processTicksAndRejections (node:internal/process/task_queues:84:11)\nfor call at\n    at MessageServiceClient.makeUnaryRequest (/app/node_modules/@grpc/grpc-js/build/src/client.js:161:32)\n    at MessageServiceClient.UpsertLabel (/app/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)\n    at MessageServiceClient.UpsertLabel (/app/dist/core/engines/gows/grpc/gows.js:10028:30)\n    at node:internal/util:495:21\n    at new Promise (<anonymous>)\n    at node:internal/util:481:12\n    at WhatsappSessionGoWSPlus.updateLabel (/app/dist/core/engines/gows/session.gows.core.js:1351:61)\n    at descriptor.value (/app/dist/core/abc/activity.js:9:35)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)"
    },
    "request": {
        "path": "/api/*****/labels",
        "method": "POST",
        "body": {
            "name": "Lead - 01",
            "color": 0
        },
        "query": {}
    },
    "version": {
        "version": "2025.11.4",
        "engine": "GOWS",
        "tier": "PLUS",
        "browser": null
    }
}

Additional context

docker-compose.yml

version: '3'

services:
  waha-dashboard:
    restart: unless-stopped
    image: devlikeapro/waha-plus:latest-2025.11.4
    container_name: waha-dashboard
    ports:
      - '80:8081'
    volumes:
      - './app/media:/app/.media'
      - './app/sessions:/app/.sessions'
    env_file:
      - .env.production

  waha-cron:
    container_name: waha-cron
    build: ./waha_cron
    restart: always
    volumes:
      - ./waha_cron/start.sh:/waha_cron/start.sh
      - ./waha_cron/qrcode_timeout.sh:/waha_cron/qrcode_timeout.sh
      - ./waha_cron/crontab:/etc/cron.d/crontab
    environment:
      - TZ=America/Sao_Paulo

patron:PLUS

felippebueno avatar Dec 04 '25 14:12 felippebueno

+1

vandyahmadldm avatar Dec 05 '25 02:12 vandyahmadldm

+1

patron:PLUS

dev-wabiz avatar Dec 05 '25 21:12 dev-wabiz

+1

patron:PLUS

devcaiosa avatar Dec 12 '25 17:12 devcaiosa

+1

brunojfnet avatar Dec 12 '25 17:12 brunojfnet

Working on the version GOWS 2025.12.1

Create a new label:

Image

Update a label:

Image

Save labels for the chat:

Image

Delete the label:

Image

patron:PRO

bergpinheiro avatar Dec 12 '25 17:12 bergpinheiro

+1

cabralads avatar Dec 16 '25 19:12 cabralads

Working on the version GOWS 2025.12.1

Create a new label:

Image Update a label: Image Save labels for the chat: Image Delete the label: Image [![patron:PRO](https://camo.githubusercontent.com/f603a6a99a2dbd219edd08c5cfb2b5edf01581c2e2e5e21a5d50298508c04a6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706174726f6e2d50524f2d313838613432)](https://waha.devlike.pro/docs/how-to/plus-version/#tiers)

do you try with official whatsapp? blue tick?

vandyahmadldm avatar Dec 19 '25 07:12 vandyahmadldm

I tested it on GOWS version 2025.12.2 and everything is working. Thank you!

patron:PLUS

felippebueno avatar Dec 21 '25 23:12 felippebueno