waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS] - Error trying to create a Label

Open gajosu opened this issue 1 year ago • 7 comments

I'm getting this error in some sessions when creating a Label.

It doesn't happen in all sessions, but it does in most.

Version

{
  "version": "2025.11.1",
  "engine": "GOWS",
  "tier": "PLUS"
}

Error response


{
  "statusCode": 500,
  "timestamp": "2025-11-12T16:33:39.965Z",
  "exception": {
    "message": "2 UNKNOWN: error upserting label: no app state keys found, creating app state keys is not yet supported",
    "code": 2,
    "details": "error upserting label: no app state keys found, creating app state keys is not yet supported",
    "metadata": {},
    "name": "Error",
    "stack": "Error: 2 UNKNOWN: error upserting label: no app state keys found, creating app state keys is not yet supported\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:361:141)\n at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:324: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:85: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:9968:30)\n at node:internal/util:470:21\n at new Promise (<anonymous>)\n at node:internal/util:456:12\n at WhatsappSessionGoWSPlus.updateLabel (/app/dist/core/engines/gows/session.gows.core.js:1328:61)\n at WhatsappSessionGoWSPlus.createLabel (/app/dist/core/engines/gows/session.gows.core.js:1308:21)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)"
  },
  "request": {
    "path": "/api/{session}/labels",
    "method": "POST",
    "body": {
      "name": "👤 label",
      "color": 8
    },
    "query": {}
  },
  "version": {
    "version": "2025.11.1",
    "engine": "GOWS",
    "tier": "PLUS",
    "browser": null
  }
}

patron:PLUS

gajosu avatar Nov 12 '25 18:11 gajosu

I'm also having problems when trying to add labels to a chat.


{
    "statusCode": 500,
    "timestamp": "2025-11-14T16:28:50.707Z",
    "exception": {
        "message": "2 UNKNOWN: error adding label to chat: server returned error updating app state: <collection name=\"regular\" type=\"error\"><error code=\"409\" text=\"conflict\"/><patches><patch><!-- 271 bytes --></patch></patches></collection>",
        "code": 2,
        "details": "error adding label to chat: server returned error updating app state: <collection name=\"regular\" type=\"error\"><error code=\"409\" text=\"conflict\"/><patches><patch><!-- 271 bytes --></patch></patches></collection>",
        "metadata": {},
        "name": "Error",
        "stack": "Error: 2 UNKNOWN: error adding label to chat: server returned error updating app state: <collection name=\"regular\" type=\"error\"><error code=\"409\" text=\"conflict\"/><patches><patch><!-- 271 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:361:141)\n    at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:324: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:85:11)\nfor call at\n    at MessageServiceClient.makeUnaryRequest (/app/node_modules/@grpc/grpc-js/build/src/client.js:161:32)\n    at MessageServiceClient.AddChatLabel (/app/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)\n    at MessageServiceClient.AddChatLabel (/app/dist/core/engines/gows/grpc/gows.js:9974:30)\n    at node:internal/util:470:21\n    at new Promise (<anonymous>)\n    at node:internal/util:456:12\n    at WhatsappSessionGoWSPlus.putLabelsToChat (/app/dist/core/engines/gows/session.gows.core.js:1388:66)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)"
    },
    "request": {
        "path": "/api/{session}/labels/chats/{chatid}@c.us",
        "method": "PUT",
        "body": {
            "labels": [
                {
                    "id": "5"
                }
            ]
        },
        "query": {}
    },
    "version": {
        "version": "2025.11.1",
        "engine": "GOWS",
        "tier": "PLUS",
        "browser": null
    }
}

patron:PLUS

gajosu avatar Nov 14 '25 16:11 gajosu

+1 label feature not working in waha 2025.11.1

blackbeardkurohige avatar Nov 15 '25 07:11 blackbeardkurohige

+1

patron:PLUS

brunubarbosa avatar Nov 17 '25 14:11 brunubarbosa

+1

patron:PLUS

dev-wabiz avatar Nov 18 '25 19:11 dev-wabiz

+1

vandyahmad24 avatar Nov 25 '25 09:11 vandyahmad24

+1

Try using @lid as chat

patron:PRO

devlikepro avatar Oct 14 '26 12:10 devlikepro