WhiskeySockets / Baileys

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

rate-overlimit error [BUG] #797

Closed idith80 closed 2 months ago

idith80 commented 2 months ago

When the bot sends commands, it occasionally triggers a rate-overlimit error, causing an internal server error. This error happens when the bot exceeds the API's rate limit for sending messages.

Error Message: Error: rate-overlimit at assertNodeErrorFree (/app/node_modules/@whiskeysockets/baileys/lib/WABinary/generic-utils.js:56:15) at query (/app/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:140:48) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async groupMetadata (/app/node_modules/@whiskeysockets/baileys/lib/Socket/groups.js:22:24) at async /app/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:290:41 at async Promise.all (index 0) at async /app/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:283:51 at async Object.transaction (/app/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js:136:26) at async relayMessage (/app/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:279:9) at async Object.sendMessage (/app/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:652:17) at async Object.function (/app/commands/_menu.js:28:1) { data: 429, isBoom: true, isServer: true, output: { statusCode: 500, payload: { statusCode: 500, error: 'Internal Server Error', message: 'An internal server error occurred' }, headers: {} } }

SheIITear commented 2 months ago

This is not a bug in the lib, please stop making new issues when theyre closed.