giuseppecastaldo / ha-addons

Home Assistant Whatsapp Add-on
Apache License 2.0
63 stars 19 forks source link

[Bug]: This action requires the clientId field. Enter a valid value for clientId #94

Open Gaio-Christiano opened 1 month ago

Gaio-Christiano commented 1 month ago

The problem

I installed yesterday on Home Assistant version 2024.10.1, Supervisor version 2024.10.0, Operating System 13.1. The WhatsApp version is 1.4.1 and I can't send a single message and every time I try to send it, I get the error "This action requires the clientId field. Enter a valid value for clientId" and I don't know how to solve it. I created another client and scanned the QR code and the same problem. wa 09 wa 08 wa 06 wa 07 wa 05 wa 04 wa 03 wa 02 wa 01

What version of Home Assistant Core has the issue?

2024.10.1

What version of the addon has the issue?

1.4.1

What type of installation are you running?

Home Assistant OS

Log information

2024-10-09 09:47:37.087 INFO (SyncWorker_5) [supervisor.docker.manager] Stopping addon_f4fdf59d_whatsapp_addon application
2024-10-09 09:47:44.334 INFO (SyncWorker_5) [supervisor.docker.manager] Cleaning addon_f4fdf59d_whatsapp_addon application
2024-10-09 09:47:47.896 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on f4fdf59d/aarch64-addon-whatsapp_addon with version 1.4.1

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:23:55] INFO: Installed custom component.
[2024-10-08T15:23:59.108] [INFO] default - Whatsapp Addon started.
[2024-10-08T15:24:03.608] [INFO] default - default client is ready.
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
[18:46:19] INFO: Installed custom component.
[2024-10-08T18:46:47.184] [INFO] default - Whatsapp Addon started.
[2024-10-08T18:46:49.988] [INFO] default - default client is ready.
/whatsapp.js:240
      throw new WhatsappError(err.output.payload.statusCode);
            ^

WhatsappError: Send message failed. Whatsapp error 428: Connection Closed
    at WhatsappClient.sendPresenceUpdate (/whatsapp.js:240:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at runNextTicks (node:internal/process/task_queues:64:3)
    at process.processTimers (node:internal/timers:504:9) {
  code: 428
}

Node.js v18.9.1
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
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
[23:05:22] INFO: Installed custom component.
[2024-10-08T23:05:27.624] [INFO] default - Whatsapp Addon started.
[2024-10-08T23:05:32.041] [INFO] default - default client is ready.
/whatsapp.js:240
      throw new WhatsappError(err.output.payload.statusCode);
            ^

WhatsappError: Send message failed. Whatsapp error 428: Connection Closed
    at WhatsappClient.sendPresenceUpdate (/whatsapp.js:240:13) {
  code: 428
}

Node.js v18.9.1
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
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
[00:08:03] INFO: Installed custom component.
[2024-10-09T00:08:10.111] [INFO] default - Whatsapp Addon started.
[2024-10-09T00:08:11.628] [INFO] default - default client is ready.
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
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
[09:47:48] INFO: Installed custom component.
[2024-10-09T09:47:54.772] [INFO] default - Whatsapp Addon started.
[2024-10-09T09:47:56.894] [INFO] default - casa require authentication over QRCode, please see your notifications...
[2024-10-09T09:47:57.573] [INFO] default - default client is ready.
[2024-10-09T09:48:25.517] [INFO] default - casa client is ready.

Additional information

This action requires the clientId field. Enter a valid value for clientId

wa 09 wa 08 wa 06 wa 07 wa 05 wa 04 wa 03 wa 02 wa 01 wa 00

superture commented 3 weeks ago

Same here but if I use the action in an automation it works