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 589 forks source link

Klona error Maximum call stack size exceeded #2383

Closed kevin4dhd closed 2 years ago

kevin4dhd commented 2 years ago

Are you using the latest version of the library?

Are you using Multi-device?

Current Behavior

After some messages, the bot stops working, an error occurs in the klona library, this causes the bot to stop and close

Expected Behavior

The bot is expected to continue to function normally

Steps To Reproduce

Start the bot in windows 10, send a couple of messages and the error will appear

Mode

My own code

create() code

wa.create(
    {
        //useChrome: false,
        executablePath: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe',
        blockCrashLogs: true,
        disableSpins: true,
        logConsoleErrors: true,
        useStealth: true,
        corsFix: true,
        sessionId: process.env.PATH_SESION,
        qrTimeout: 0,
    }
).then(client => start(client));

DEBUG INFO

- Debug info: {
  "WA_VERSION": "2.2147.16",
  "PAGE_UA": "WhatsApp/2.2147.16 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.28.0",
  "BROWSER_VERSION": "HeadlessChrome/96.0.4664.110",
  "OS": "Windows 10",
  "START_TS": 1640842764887
}

Environment

- OS: Windows 10
- Node: v16.13.0
- npm: 8.2.0

Screenshots

image image

Anything else?

I am not using "Multi-device" it won't let me create the issue without checking this option

smashah commented 2 years ago

@github-actions run

āš” Release! āš” ```js (async () => { function exec(cmd) { console.log(execSync(cmd).toString()); } //set the version type process.env.VERS = "patch" // Config const gitUserEmail = "github-actions[bot]@users.noreply.github.com"; const gitUserName = "github-actions[bot]"; exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`); exec(`git config --global user.email "${gitUserEmail}"`); exec(`git config --global user.name "${gitUserName}"`); exec(`npm i -D`); exec(`npm run release-ci $VERS`); // types only package exec('npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN') exec(`cd ./types-only && npm version $VERS && npm run build && npm publish && cd ..`); exec(`git commit -a -m 'updated types-only package'`); exec(`git push --force`); //comment on the issue var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString(); await postComment(result); //create changelog image exec(`npm run release-image`); exec(`git commit -a -m 'updated release-image'`); exec(`git push --force`); })(); ```
smashah commented 2 years ago

Changelog

šŸš€ Release 4.28.1 (2021-12-30)