WhiskeySockets / Baileys

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

404,myAppStateKeyId not present #1046

Open anonphoenix007 opened 2 weeks ago

anonphoenix007 commented 2 weeks ago

Error: myAppStateKey ("ID here") not present at encodeSyncdPatch (/root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.js:105:15) at async /root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Socket/chats.js:555:32 at async Object.transaction (/root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js:136:26) at async /root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Socket/chats.js:550:13 at async /root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.js:18:36 { data: null, isBoom: true, isServer: false, output: { statusCode: 404, payload: { statusCode: 404, error: 'Not Found', message: 'myAppStateKey ("ID here") not present' }, headers: {} } }

I get the above error whenever I try to use the chatModify function ,I checked my credentials file and there's a myAppStateKey present but I don't understand why it's not working for me. The below code is the one I tried to use to modify the chat

await Taira.chatModify({ delete: true, lastMessages: [{ key: m.key, messageTimestamp: m.messageTimestamp }] }, m.sender);

anonphoenix007 commented 2 weeks ago

@PurpShell

bobslavtriev commented 1 week ago

Are you using shouldIgnoreJid?

anonphoenix007 commented 1 week ago

Are you using shouldIgnoreJid?

I'm not 🤔