WhiskeySockets / Baileys

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

[BUG] Close Session & Mac Error #648

Open Jakquellyn opened 7 months ago

Jakquellyn commented 7 months ago

why when I broadcast it isn't sent to all groups? why when I broadcast it isn't sent to all groups? here is the log

SessionError: No sessions
    at 9170057191585.94 [as awaitable] (/root/calestial/node_modules/libsignal/src/session_cipher.js:71:23)
    at async _asyncQueueExecutor (/root/calestial/node_modules/libsignal/src/queue_job.js:20:29)

and why suddenly the message not read error occurred with the Mac Error log

Session error:Error: Bad MAC Error: Bad MAC
    at Object.verifyMAC (/root/calestial/node_modules/libsignal/src/crypto.js:87:15)
    at SessionCipher.doDecryptWhisperMessage (/root/calestial/node_modules/libsignal/src/session_cipher.js:250:16)
    at async SessionCipher.decryptWithSessions (/root/calestial/node_modules/libsignal/src/session_cipher.js:147:29)
    at async 62895411171246.0 [as awaitable] (/root/calestial/node_modules/libsignal/src/session_cipher.js:171:28)
    at async _asyncQueueExecutor (/root/calestial/node_modules/libsignal/src/queue_job.js:20:29)
Todpig commented 7 months ago

I have the same problem

joseluna03 commented 7 months ago

me to

enoksaju commented 7 months ago

me too

ecatugy commented 7 months ago

me too

PurpShell commented 4 months ago

Make sure your auth state is including sessions. That being said, I will work on making this process less headache-inducing

marcosrocha85 commented 1 day ago

Any example of how can we handle sessions?