Wa-automate-nodejs: Program stuck on 'Checking license'

Created on 25 May 2020  Â·  4Comments  Â·  Source: open-wa/wa-automate-nodejs

Describe the bug
Stuck on 'Checking License'.

Steps to Reproduce
Steps to reproduce the behaviour:

  1. Run the code with subscribed license key and the system either gets stuck on 'Checking license' or passes and does nothing.

create() code
This is the code you use to create the client. e.g

client = await sulla.create('app', {
        licenseKey: "..."
});

Expected behavior
The app should successfully connect with client and proceed with next callback

DEBUG INFO
This is the info printed to the console when you start your app. It should look like this

✓ Initializing WA
WA_VERSION: '2.2021.4',
PAGE_UA: 'WhatsApp/2.2019.8 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36',
WA_AUTOMATE_VERSION: '1.9.47',
BROWSER_VERSION: 'HeadlessChrome/81.0.4044.138',
✓ Authenticated
✓ WAPI Reinjected
✓ Client is ready
✓ Passed Integrity Test

Screenshots
Screenshot 2020-05-25 at 11 42 39 PM

PRIORITY

Most helpful comment

@github-actions run


âš¡ Release! âš¡

(async () => {
function exec(cmd) {
  console.log(execSync(cmd).toString());
}

// 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`);
exec(`npm run release-ci`);

//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`);
  })();

All 4 comments

After debugging, it seems like something is wrong with my license key. when I remove it my code works just fine. Can you help me check what's wrong with my key?

@github-actions run


âš¡ Release! âš¡

(async () => {
function exec(cmd) {
  console.log(execSync(cmd).toString());
}

// 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`);
exec(`npm run release-ci`);

//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`);
  })();

Changelog

🚀 Release 1.9.49 (2020-05-26)

  • Release 1.9.49 f64047b
  • IMPORTANT fix: frozen on license check #485 962dd9c

Thanks it worked!

Was this page helpful?
0 / 5 - 0 ratings