open-wa / wa-automate-nodejs

💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
https://docs.openwa.dev/
Other
3.11k stars 588 forks source link

Error: Evaluation failed: Error: MsgKey error: don't have a matching constructor #2288

Closed joelvitorniino closed 2 years ago

joelvitorniino commented 2 years ago

Are you using the latest version of the library?

Current Behavior

-x-

Expected Behavior

-x-

Steps To Reproduce

-x-

Mode

My own code

create() code

create({
    sessionId: "niino-bot",
    useChrome: true,
    headless: true,
    cacheEnabled: false,
    autoRefresh: true,
    customUserAgent: "WhatsApp/2.2108.8 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36"
})

DEBUG INFO

WA_VERSION      │                                                                 '2.2144.8'                                                                  │
│       PAGE_UA       │ 'WhatsApp/2.2108.8 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36' │
│ WA_AUTOMATE_VERSION │                                                                  '4.23.9'                                                                   │
│   BROWSER_VERSION   │                                                        'HeadlessChrome/94.0.4606.81'                                                        │
│         OS          │                                                                'Linux 5.14'                                                                 │
│      START_TS       │                                                                1636659508588

Environment

- OS: Fedora
- Node: latest
- npm: latest

Screenshots

image

Anything else?

-x-

smashah commented 2 years ago

@joelvitorniino can you try to reproduce this error again please. If it is still happening then please add the code to reproduce to this issue