mautrix / whatsapp

A Matrix-WhatsApp puppeting bridge
https://maunium.net/go/mautrix-whatsapp
GNU Affero General Public License v3.0
1.29k stars 175 forks source link

Unable to communicate with bot #400

Closed alistair23 closed 2 years ago

alistair23 commented 2 years ago

On the latest 0.5.1 release of Dendrite or the latest master branch commit my WhatsApp bridge is unresponsive.

I am able to add the bot to a room, where I get the "Hello, I'm a WhatsApp bridge bot" message, but then any commands that I send don't generate a response. Also the WhatsApp messages aren't being sycned.

This is on a setup that previously worked, but not just seems to be unresponsive.

This is the log that I see:

[DEBUG] Starting application service HTTP server
[DEBUG] Starting event processor
[INFO] Bridge started!
[Matrix/INFO] Listening on 127.0.0.1:29318
[DEBUG] Updating bot profile
[Matrix/Bot/DEBUG] req #2: PUT https://***/_matrix/client/r0/profile/@whatsappbot2:***/avatar_url?user_id=*** {"avatar_url":"mxc://maunium.net/NeXNQarUbrlYBiPCpprYsRqr"}
[DEBUG] Starting users
[DEBUG] Starting custom puppets
[Matrix/Bot/DEBUG] req #3: PUT https://***/_matrix/client/r0/profile/@whatsappbot2:***/displayname?user_id=*** {"displayname":"WhatsApp bridge bot"}
[Matrix/DEBUG] Starting handling of transaction 3406 (1 PDUs)
[Matrix/DEBUG] Starting handling of transaction 3407 (2 PDUs)
[Matrix/DEBUG] Starting handling of transaction 3408 (1 PDUs)
[Matrix/DEBUG] Starting handling of transaction 3409 (1 PDUs)
tulir commented 2 years ago

Did you try to use an encrypted room without enabling encryption in the bridge?

alistair23 commented 2 years ago

Encryption is disabled in the bridge, but the room is not encrypted

alistair23 commented 2 years ago

I saw this log as well, if that's helpful:

level=info msg="Producing to topic 'DendriteOutputRoomEvent'" func="WriteOutputEvents\n\t" file=" [input.go:130]" adds_state=1 content_value=join event_id="$fZzWGWR7_QGoAQlKHmUCOmU56d15kOpmeNqgiCSKaiE" event_type=m.room.member removes_state=1 room_id="!zg6EvnSOYLOsLUfD:alistair23.me" send_as_server=*** sender="@whatsappbot2:***" state_key="@whatsappbot2:***" type=new_room_event
spaetz commented 2 years ago

Just want to report that mautrix-whatsapp works well with my dendrite on current master, I had initially the problem that the WhatsAppBot would not join the room, but after a few restarts of both dendrite and the bridge, things are working fine now on this installation.