giuseppecastaldo / ha-addons

Home Assistant Whatsapp Add-on
Apache License 2.0
49 stars 18 forks source link

Cannot read properties of undefined (reading 'payload') #58

Closed pbn42 closed 5 months ago

pbn42 commented 5 months ago

Hi, Since the last version (1.3.4) everytime i try to send a message, i get this error in the logs :

s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started [15:51:28] INFO: Installed custom component. [2024-01-20T15:51:29.584] [INFO] default - Whatsapp Addon started. [2024-01-20T15:51:30.139] [INFO] default - default client is ready. [2024-01-20T15:53:15.572] [ERROR] default - Cannot read properties of undefined (reading 'payload')

(trying to send the message from the services tab in gome assistant :)

service: whatsapp.send_message data: clientId: default to: 33612345678@s.whatsapp.net body: text: test

Do you have an idea to fix it please ?

Thanks in advance.

Best regards,

Pierre

kalhimeo commented 5 months ago

For info i have exactly the same error here since today's update

D3nh0 commented 5 months ago

Same issue as well

giuseppecastaldo commented 5 months ago

Solved. https://github.com/giuseppecastaldo/ha-addons/pull/59

pbn42 commented 5 months ago

Thanks a lot for your reactivity 🙏

D3nh0 commented 5 months ago

Thank you for the fix! (And the great add-on, first time using it today)