Skip to content

[WEBJS] - cannot send message #1905

@kuravista

Description

@kuravista

Describe the bug

When attempting to send a text message using the /api/sendText endpoint, the API returns a 500 Internal Server Error with the message "Lid is missing in chat table". This seems to be an issue within the whatsapp-web.js (WEBJS) engine when interacting with the underlying WhatsApp Web structural changes.

Version

{
  "version": "2026.2.1",
  "engine": "WEBJS",
  "tier": "PLUS"
}

Expected behavior

The message should be sent successfully to the specified chatId, and the API should return a success response (200/201 OK).

Requests - Responses

Request:

curl -X 'POST' \
  'http://10.10.10.118:3000/api/sendText' \
  -H 'accept: application/json' \
  -H 'X-Api-Key: [REDACTED]' \
  -H 'Content-Type: application/json' \
  -d '{
  "chatId": "6285625*****@c.us",
  "reply_to": null,
  "text": "Hi there sdfas !",
  "linkPreview": true,
  "linkPreviewHighQuality": false,
  "session": "default"
}'

Response Body:

{
  "statusCode": 500,
  "timestamp": "2026-02-11T01:45:49.637Z",
  "exception": {
    "message": "Lid is missing in chat table",
    "name": "Error",
    "stack": "Error: Lid is missing in chat table\n    at #evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:391:56)\n    at async ExecutionContext.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:277:16)..."
  },
  "request": {
    "path": "/api/sendText",
    "method": "POST",
    "body": {
      "chatId": "62856250****@c.us",
      "reply_to": null,
      "text": "Hi there sdfas !",
      "linkPreview": true,
      "linkPreviewHighQuality": false,
      "session": "default"
    },
    "query": {}
  }
}

Docker Logs

Error: Lid is missing in chat table
    at #evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:391:56)
    at async ExecutionContext.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:277:16)
    at async IsolatedWorld.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:100:16)
    at async CdpFrame.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:362:20)
    at async CdpPage.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:818:20)
    at async WPage.evaluate (/app/dist/core/engines/webjs/WPage.js:13:20)
    at async WebjsClientPlus.sendMessage (/app/node_modules/whatsapp-web.js/src/Client.js:1094:25)

patron:PLUS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions