Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

TypeError: Cannot read properties of undefined (reading 'serialize') when sending message #352

@Lookinghim

Description

@Lookinghim

I'm encountering an error when trying to send a message using the API. The message is actually sent successfully, but the server returns an error response, and the log shows a serialize error from getMessageModel.

Error log shown in Docker:

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'serialize')

    at window.WWebJS.getMessageModel (pptr://__puppeteer_evaluation_script__:412:29)

    at pptr://__puppeteer_evaluation_script__:11:34

    at ExecutionContext._ExecutionContext_evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:229:15)

    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

    at async ExecutionContext.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:107:16)

    at async Client.sendMessage (/usr/src/app/node_modules/whatsapp-web.js/src/Client.js:950:28)

    at async sendMessage (/usr/src/app/src/controllers/clientController.js:82:22)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions