salman0ansari / whatsapp-api-nodejs

RESTful WhatsApp API with Multiple Device Support
GNU General Public License v3.0
1.27k stars 605 forks source link

No session found to decrypt message #784

Closed xinkyo closed 11 months ago

xinkyo commented 12 months ago

sometimes No session found to decrypt message for sending group message, speciall after restarting the instance. then group cannot receive message.

messages.upsert { "messages": [ { "key": { "remoteJid": "1203................1@g.us", "fromMe": false, "id": "BAE57C5C7AFF73FD", "participant": "8.............1@s.whatsapp.net" }, "messageTimestamp": 1693540199, "pushName": "leo xin", "broadcast": false, "messageStubType": 2, "messageStubParameters": [ "No session found to decrypt message" ] } ], "type": "notify" }

xinkyo commented 11 months ago

I found this bug is in mongoAuthState.js , not saving the key and read the key correctly. hope could fix.