mautrix / whatsapp

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

Your message was not bridged: the bridge hasn't received the decryption keys. #649

Closed KywoSkylake closed 1 year ago

KywoSkylake commented 1 year ago

Hi,

I wanted to use the E2B feature of the bridge and I'm running a Synapse server but when I invite the bot in an encrypted room, I receive this message as soon as I send the bot a text message.

Your message was not bridged: the bridge hasn't received the decryption keys.

In the logs, I see the fallowing message

2023-09-17T16:44:36Z DBG Decrypting received event event_id=$9Duj8ztDDu4tROOsse7End1Gcd3hJMtBQ_9SaoasT70 session_id=QTBgZiysdlWCrRwxmtOy6PtLBm28kZ+HqnYpEzwoiT0
2023-09-17T16:44:36Z DBG Couldn't find session, waiting for keys to arrive... event_id=$9Duj8ztDDu4tROOsse7End1Gcd3hJMtBQ_9SaoasT70 session_id=QTBgZiysdlWCrRwxmtOy6PtLBm28kZ+HqnYpEzwoiT0 wait_seconds=3
2023-09-17T16:44:36Z DBG Sent message checkpoint message_checkpoint={"event_id":"$9Duj8ztDDu4tROOsse7End1Gcd3hJMtBQ_9SaoasT70","event_type":"m.room.encrypted","info":"failed to decrypt megolm event: no session with given ID found (ID QTBgZiysdlWCrRwxmtOy6PtLBm28kZ+HqnYpEzwoiT0)","reported_by":"BRIDGE","retry_num":0,"room_id":"!ZYTUlIlzAuSgarvhOl:","status":"WILL_RETRY","step":"DECRYPTED","timestamp":1694969076773}

Does anyone has an Idea why it doesn't work?

Thanks Mike

KywoSkylake commented 1 year ago

The problem was on my part

dingodoppelt commented 9 months ago

The problem was on my part

@KywoSkylake How did you solve it? I have the same problem since earlier today

maltee1 commented 9 months ago

It's not a bridge problem, it's a matrix (megolm) problem. It happens with other matrix users, too. The solution is to discard your megolm session, in element and probably most other clients, that works by running /discardsession

verymilan commented 8 months ago

The tchncs.de bridge is now also affected. On top of that, there are many You don't have permission to access that event. and No known servers errors in the log. While a user randomly got it working again, it doesn't seem like /discardsession has any effect in our case.

known related synapse issue reports