Skip to content

[WEBJS] - Failed to fetch old whatsapp message #1885

@Pivotaltechs

Description

@Pivotaltechs

Describe the bug

Failed to fetch old whatsapp message

Version

Get the WAHA version by calling GET /api/version

  "version": {
    "version": "2026.2.1",
    "engine": "WEBJS",
    "tier": "PLUS",
    "browser": "/usr/bin/chromium",
    "platform": "linux/x64",
    "worker": {
      "id": null
    }
  }

Requests - Responses

{
  "statusCode": 500,
  "timestamp": "2026-02-03T02:36:50.273Z",
  "exception": {
    "message": "Cannot read properties of undefined (reading 't')",
    "name": "TypeError",
    "stack": "TypeError: Cannot read properties of undefined (reading 't')\n    at evaluate (evaluate at WPage.evaluate (/app/dist/core/engines/webjs/WPage.js:13:36), <anonymous>:33:29)\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)\n    at async IsolatedWorld.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:100:16)\n    at async CdpFrame.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:362:20)\n    at async CdpPage.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:818:20)\n    at async WPage.evaluate (/app/dist/core/engines/webjs/WPage.js:13:20)\n    at async WebjsClientPlus.getMessages (/app/dist/core/engines/webjs/WebjsClientCore.js:171:26)\n    at async WhatsappSessionWebJSPlus.getChatMessages (/app/dist/core/engines/webjs/session.webjs.core.js:578:26)"
  },
  "request": {
    "path": "/api/default/chats/120363310504677766%40g.us/messages?downloadMedia=true&limit=50&offset=0&filter.timestamp.lte=1770084647&filter.timestamp.gte=1769479847",
    "method": "GET",
    "query": {
      "downloadMedia": "true",
      "limit": "50",
      "offset": "0",
      "filter.timestamp.lte": "1770084647",
      "filter.timestamp.gte": "1769479847"
    }
  }

patron:PRO

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