Skip to content

error /getSnapshot #3309

@scropion86

Description

@scropion86

Are you using the latest version of the library?

  • I have checked and am using the latest version of the library.

What type of session are you experiencing this issue on?

Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag

What type of host account are you experiencing this issue on?

Personal account (normal)

Mode

EASY API/CLI

Current Behavior

curl -X 'POST' \
  'http://domain.com:8080/getSnapshot' \
  -H 'accept: */*' \
  -H 'api_key: somekey' \
  -H 'Content-Type: application/json' \
  -d '{
  "args": {
    "chatId": "9665XXXXXX@c.us"

  }
}'

got error

{
  "success": false,
  "error": {
    "name": "TypeError",
    "message": "Please set arguments in request json body, not in params. Cannot read properties of undefined (reading 'id')"
  }
}

and console log

info: OUT fbe45: 6ms  {"res":"true_9665XXXXXXX@c.us_3EB0D66AE5F274BD97CEB6","timestamp":"2025-11-11T07:45:34.511Z"}

info: MDLWR - getSnapshot : {"args":{"chatId":"96655XXXXXX@c.us"}} {"timestamp":"2025-11-11T07:45:46.108Z"}

info: methodArgs: chatId,width,height {"timestamp":"2025-11-11T07:45:46.110Z"}

middleware -> error Error [TypeError]: Cannot read properties of undefined (reading 'id')

    at window.<computed>.<computed> (evaluate at /usr/src/app/node_modules/@open-wa/wa-automate/dist/controllers/patch_manager.js:127:50, <anonymous>:0:588016)

    at evaluateHandle (evaluateHandle at Client.<anonymous> (/usr/src/app/node_modules/@open-wa/wa-automate/dist/api/Client.js:2093:63), <anonymous>:0:22)

    at #evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:391:56)

    at async ExecutionContext.evaluateHandle (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:330:16)

    at async IsolatedWorld.evaluateHandle (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:89:16)

    at async CdpFrame.evaluateHandle (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:338:20)

    at async CdpPage.evaluateHandle (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:376:20)

    at i.openChatBottom (https://static.whatsapp.net/rsrc.php/v4/yr/r/hk3U1CcjQvE.js:926:11046)

Expected Behavior

expect to get screen shoot

Steps To Reproduce

linux
docker

create() code OR full CLI command + CONFIG

DEBUG INFO

{
  "success": true,
  "response": {
    "WA_VERSION": "2.3000.1029703030",
    "PAGE_UA": "WhatsApp/2.2147.16 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
    "WA_AUTOMATE_VERSION": "4.76.0",
    "BROWSER_VERSION": "Chrome/133.0.6943.126",
    "OS": "Linux 6.1",
    "START_TS": 1762846855651,
    "RAM_INFO": "Total: 1.99 GB | Free: 0.96 GB",
    "PPTR_VERSION": "23.11.1",
    "LATEST_VERSION": true,
    "CLI": true,
    "PATCH_HASH": "42b1f",
    "OW_KEY": "29a3a5cf61448a39fe2c33431dc2b74d772bdfb3b44bae66f9ac958a47d8ccd3",
    "NUM": "1274",
    "NUM_HASH": "745999f9fd5f320d613e86f9a9d67094",
    "LAUNCH_TIME_MS": 28753,
    "ACC_TYPE": "PERSONAL",
    "chats": 112,
    "messages": 104,
    "contacts": 534,
    "purged": {},
    "isBiz": false,
    "isMd": true,
    "INSTANCE_ID": "395e8e58-6e5b-4d87-9d6b-0a044ec4e68a"
  }
}

Environment

- OS: 
- Node: 
- npm:

Screenshots/Logs

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions