Skip to content

[WEBJS] - Can't get QRCODE #1923

@KeyCode17

Description

@KeyCode17

Describe the bug

A clear and concise description of what the bug is. Feel free to remove sections
that you don't feel to make the text shorter!

Version

WAHA 2026.2.1

{
  "statusCode": 500,
  "timestamp": "2026-02-22T10:16:01.161Z",
  "exception": {
    "message": "Protocol error (Page.captureScreenshot): Target closed",
    "name": "TargetCloseError",
    "cause": {
      "stack": "ProtocolError\n    at <instance_members_initializer> (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:103:14)\n    at new Callback (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:107:16)\n    at CallbackRegistry.create (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:25:26)\n    at Connection._rawSend (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:108:26)\n    at CdpCDPSession.send (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CdpSession.js:74:33)\n    at CdpPage._screenshot (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js:799:62)\n    at CdpPage.screenshot (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:1071:41)\n    at async CdpPage.<anonymous> (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js:172:24)\n    at async WhatsappSessionWebJSPlus.getScreenshot (/app/dist/core/engines/webjs/session.webjs.core.js:397:28)\n    at async ScreenshotController.screenshot (/app/dist/api/screenshot.controller.js:33:16)",
      "message": "",
      "name": "ProtocolError"
    },
    "stack": "TargetCloseError: Protocol error (Page.captureScreenshot): Target closed\n    at CallbackRegistry.clear (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:82:36)\n    at CdpCDPSession.onClosed (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CdpSession.js:115:25)\n    at #onClose (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:190:21)\n    at Connection.dispose (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:196:22)\n    at CdpBrowser.disconnect (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js:300:26)\n    at CdpBrowser.close (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js:296:20)\n    at async WebjsClientPlus.destroy (/app/node_modules/whatsapp-web.js/src/Client.js:900:9)\n    at async WebjsClientPlus.destroy (/app/dist/core/engines/webjs/WebjsClientCore.js:91:9)\n    at async WhatsappSessionWebJSPlus.end (/app/dist/core/engines/webjs/session.webjs.core.js:239:13)\n    at async /app/dist/core/engines/webjs/session.webjs.core.js:132:13"
  },
  "request": {
    "path": "/api/screenshot?session=session_cmjgc6pbd00055yp4bq0yohap",
    "method": "GET",
    "query": {
      "session": "session_cmjgc6pbd00055yp4bq0yohap"
    }
  },
  "version": {
    "version": "2026.2.1",
    "engine": "WEBJS",
    "tier": "PLUS",
    "browser": "/usr/bin/chromium",
    "platform": "linux/x64",
    "worker": {
      "id": null
    }
  }
}
  
[10:17:07.897] ERROR (Bootstrap/48): ProtocolError: Protocol error (Network.getResponseBody): No data found for resource with given identifier
    at <instance_members_initializer> (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:103:14)
    at new Callback (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:107:16)
    at CallbackRegistry.create (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:25:26)
    at Connection._rawSend (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:108:26)
    at CdpCDPSession.send (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CdpSession.js:74:33)
    at /app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/HTTPResponse.js:99:65
    at async CdpHTTPResponse.text (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/HTTPResponse.js:39:25)
    at async /app/node_modules/whatsapp-web.js/src/Client.js:889:39

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