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: {}
}
}
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: {} } }