Skip to content

Using latest version, when trying to send a message, I get an exception "Evaluation failed: t" #4005

@ralphv

Description

@ralphv

Is there an existing issue for this?

  • I have searched the existing issues.

Is this a problem caused by your code, or is it specifically because of the library?

  • I have double-checked my code carefully.

Describe the bug.

My code hasn't been touched since 2 years now. Attempted to upgrade to the latest version and when my code tries to send a message, I get Error

"Evaluation failed: t"

If I rollback to 1.34.0 I don't get the error anymore, but have another issue similarly described in another bug, when trying to send a message, it goes through but then for some reason, the session gets logged out with the logged out event...

Expected Behavior

Not to send this error and to actually send the message.

Steps to Reproduce the Bug or Issue

        let response;
        try {
            response = await this.client.sendMessage(to, body);
        } catch (e) {
            console.error(`Failed to send message: ${e instanceof Error ? e.message : JSON.stringify(e)}`);
            return '';
        }

WhatsApp Account Type

Standard

Browser Type

N/A

Operation System Type

Docker + node:slim

Phone OS Type

Android

WhatsApp-Web.js Version

v1.34.2

WhatsApp Web Version

N/A

Node.js Version

v25.2.1

Authentication Strategy

LocalAuth

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions