WhiskeySockets / Baileys

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

[BUG] I get strange error when try to load the memory json file #851

Open roysG opened 3 months ago

roysG commented 3 months ago

When i try to load the memory json file, i get this error:

@whiskeysockets/baileys/lib/Store/make-in-memory-store.js:432 3912|43980c9f8956228fae3d8547a55fc800 | const json = JSON.parse(jsonStr); 3912|43980c9f8956228fae3d8547a55fc800 | ^ 3912|43980c9f8956228fae3d8547a55fc800 | SyntaxError: Unterminated string in JSON at position 16384015 (line 1 column 16384016) 3912|43980c9f8956228fae3d8547a55fc800 | at JSON.parse () 3912|43980c9f8956228fae3d8547a55fc800 | at Object.readFromFile (/root/msgto/server/whatsappOLD/node_modules/@whiskeysockets/baileys/lib/Store/make-in-memory-store.js:432:35)

ghost commented 2 months ago

same

punitagarwal4 commented 1 month ago

same