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.07k stars 592 forks source link

Error in new Version Whatsapp Web 2.2023.2 #514

Closed alpires closed 4 years ago

alpires commented 4 years ago

Hi Guys, wapi.js is not working on version 2.2023.2 of whatsapp web. Some idea? Thanks

jesusvalverde commented 4 years ago

Seem to have problem over '2.2023.2" and '1.9.61' and halt over "Authenticate to continue".. I'll test more tomorow and try to make a "template request"

arwanfiles commented 4 years ago

I have same problem here

arturromaorocha commented 4 years ago

I have same problem here

camvishalpathak commented 4 years ago

I have same problem here. Pl provide new wapi.js

willsilvano commented 4 years ago

Same here.

kaiqmo commented 4 years ago

same

UnKnoWn-Consortium commented 4 years ago

For fresh client, the 2.2023.2 update has removed the class app the authenticated check (isInsideChat) depends on, thus preventing the client to start.

https://github.com/open-wa/wa-automate-nodejs/blob/18aeb098b8c4882f920f603db395dc7095893b57/src/controllers/auth.ts#L28

For resuming sessions, the update breaks the VALID_SESSION check and creates a restart loop... I think it may be related to changes WhatsApp made to how its store is encapsulated. Reference

smashah commented 4 years ago

pushing new version very soon

smashah commented 4 years ago

@github-actions run

âš¡ Release! âš¡ ```js (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`); })(); ```
jesusvalverde commented 4 years ago

Small test and NOT working │ WA_VERSION │ '2.2023.2'

smashah commented 4 years ago

The release bot had a bit of a mess up:

https://github.com/open-wa/wa-automate-nodejs/blob/master/CHANGELOG.md#1962---2020-06-04

this is fixed in 1.9.62

jesusvalverde commented 4 years ago

Solved !!!!

smashah commented 4 years ago

@jesusvalverde @UnKnoWn-Consortium @kaiqmo @willsilvano @camvishalpathak @arturromaorocha @arwanfiles @alpires please try 1.9.62+ and let me know if worked for you. Thanks

alpires commented 4 years ago

Yes, Solved, thanks !!!

arwanfiles commented 4 years ago

It works now. Thanks @smashah

willsilvano commented 4 years ago

Yep, it works now here. Thanks!

tsapap commented 4 years ago

Now wapi.js works me it is no longer possible to send a message to a new contact .