Giter Site home page Giter Site logo

Comments (10)

gajosu avatar gajosu commented on August 19, 2024

The Whatsapp-web.js package emits an event when the client has authenticated, if at the time of scanning the QR this event is not emitted then it would give an error when trying to send the message, I will investigate, but you could try to remove and reinstall the plugin in case that there is a problem with the volume.

from whatsapp-ha-addon.

Jebsta avatar Jebsta commented on August 19, 2024

I did uninstall and install again. Didn't fix it sadly.

Maybe I'll wait longer before I scan the Code, i'll test that

from whatsapp-ha-addon.

Jebsta avatar Jebsta commented on August 19, 2024

Found this hotfix, but no idea hot to get it into the addon
pedroslopez/whatsapp-web.js#2433 (comment)

from whatsapp-ha-addon.

gajosu avatar gajosu commented on August 19, 2024

In version 1.22.2-alpha.0 this problem is fixed, right now I'm on vacation and I can't make this change, feel free to send a PR updating the package to the alpha version in this repository: https://github.com/gajosu/ha-whatsapp-web-rest-api

from whatsapp-ha-addon.

Jebsta avatar Jebsta commented on August 19, 2024

Did change the dependencies inside the package.json and package-lock.json
gajosu/ha-whatsapp-web-rest-api#164

from whatsapp-ha-addon.

gajosu avatar gajosu commented on August 19, 2024

thanks!

Did change the dependencies inside the package.json and package-lock.json gajosu/ha-whatsapp-web-rest-api#164

from whatsapp-ha-addon.

gajosu avatar gajosu commented on August 19, 2024

I have released a new version, you can check your addon store now, you should see an update.

from whatsapp-ha-addon.

Jebsta avatar Jebsta commented on August 19, 2024

Updated successfully. But it won't pair now.
Still no "client authentication".
Maybe the error is somewhere else.

from whatsapp-ha-addon.

gajosu avatar gajosu commented on August 19, 2024

in this issue pedroslopez/whatsapp-web.js#2454 they mention this problem and in theory upgrading to alpha fixes it, if you still have the same problem try uninstalling and reinstalling the addon. Maybe it could be a Docker cache problem.

from whatsapp-ha-addon.

Jebsta avatar Jebsta commented on August 19, 2024
8/29/2023, 13:09:48 [info]: 	[Whatsapp] Client is loading screen 
8/29/2023, 13:10:15 [info]: 	[Whatsapp] Client is authenticated 
8/29/2023, 13:10:15 [info]: 	[HomeAssistant] onAuthenticated 
8/29/2023, 13:10:17 [info]: 	[Whatsapp] Client is ready! 
8/29/2023, 13:10:17 [info]: 	[Whatsapp] Client initialized

The new version fixed it, so the problem was probably with the events not getting sent.
And for me the first try probably was a cached problem, because it works after reinstall.

For everyone: If you update to 2.3.6 and the problem still persists:

  • stop the addon
  • uninstall the addon
  • fully restart homeassistant (System Restart)
  • install the addon
  • (hopefully) success

from whatsapp-ha-addon.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.