WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
3.1k stars 1.07k forks source link

[BUG] No SenderKeyRecord found for decryption #885

Open oscarguindzberg opened 2 weeks ago

oscarguindzberg commented 2 weeks ago

Describe the bug I have a server with 15 connected whatsapp users. I find this on the log from time to time:

{
  "level": 50,
  "time": 1718907794643,
  "pid": 41327,
  "hostname": "ip-xxx-xxx-xxx-xxx",
  "key": {
    "remoteJid": "xxx@g.us",
    "fromMe": false,
    "id": "FD997580F27B33CF3430FB6A0D3FA104",
    "participant": "xxx@s.whatsapp.net"
  },
  "err": {
    "type": "Error",
    "message": "No SenderKeyRecord found for decryption",
    "stack": "Error: No SenderKeyRecord found for decryption
   at xxx@g.us::xxx::0 [as awaitable] (/baileys/WASignalGroup/group_cipher.js:49:15) 
   at async asyncQueueExecutor (/baileys/WASignalGroup/queue_job.js:20:29)"
  },
  "msg": "failed to decrypt message"
}

To Reproduce Don't know how to reproduce, it happens from time to time on a server with 15 connected whatsapp users.

Expected behavior No errors on the log

Environment (please complete the following information):

Additional context Using baileys v6.7.5

oscarguindzberg commented 2 weeks ago

These bugs may be related https://github.com/WhiskeySockets/Baileys/issues/885 https://github.com/WhiskeySockets/Baileys/issues/886 https://github.com/WhiskeySockets/Baileys/issues/887 https://github.com/WhiskeySockets/Baileys/issues/888