Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Timed Out error whenever I'm trying to send a broadcast message #985

Closed
aderibigbeganiu opened this issue Aug 17, 2024 · 3 comments · Fixed by #986 or wkarts/Baileys#5 · May be fixed by neglywalker/BLACK-PANTHER-XMD#4
Closed
Labels
bug Something isn't working

Comments

@aderibigbeganiu
Copy link

it works perfectly well for private message but get error on broadcast
Error sending message Error: Timed Out
at /Users/ganiuadelekeaderibigbe/Desktop/projects/Personal/bwb/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js:145:32 {
data: {
stack: 'Error\n' +
' at promiseTimeout (/Users/ganiuadelekeaderibigbe/Desktop/projects/Personal/bwb/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js:140:19)\n' +
' at waitForMessage (/Users/ganiuadelekeaderibigbe/Desktop/projects/Personal/bwb/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:119:53)\n' +
' at query (/Users/ganiuadelekeaderibigbe/Desktop/projects/Personal/bwb/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:141:22)\n' +
' at groupQuery (/Users/ganiuadelekeaderibigbe/Desktop/projects/Personal/bwb/node_modules/@whiskeysockets/baileys/lib/Socket/groups.js:12:55)\n' +
' at groupMetadata (/Users/ganiuadelekeaderibigbe/Desktop/projects/Personal/bwb/node_modules/@whiskeysockets/baileys/lib/Socket/groups.js:22:30)\n' +
' at /Users/ganiuadelekeaderibigbe/Desktop/projects/Personal/bwb/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:323:47\n' +
' at /Users/ganiuadelekeaderibigbe/Desktop/projects/Personal/bwb/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:326:23\n' +
' at Object.transaction (/Users/ganiuadelekeaderibigbe/Desktop/projects/Personal/bwb/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js:136:32)\n' +
' at relayMessage (/Users/ganiuadelekeaderibigbe/Desktop/projects/Personal/bwb/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:306:30)\n' +
' at Object.sendMessage (/Users/ganiuadelekeaderibigbe/Desktop/projects/Personal/bwb/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:664:23)'
},
isBoom: true,
isServer: false,
output: {
statusCode: 408,
payload: {
statusCode: 408,
error: 'Request Time-out',
message: 'Timed Out'
},
headers: {}
}
}

Here is my implementation:
try {
await sendMessageWTyping(
{ text: "Hello there!" },
msg.key.remoteJid!
);
await sock.sendMessage(
msg.key.remoteJid!,
{
image: {
url: "src/assets/IMG_3184.jpeg",
},
caption: Hello ${msg.pushName}\nCheck this out! :D,
},
{
quoted: msg,
}
);
await sock.sendMessage(
jid,
{
image: {
url: "src/assets/IMG_3184.jpeg",
},
caption: Hello ${msg.pushName},
},
{
statusJidList,
broadcast: true,
}
);
console.log("Story message sent");
} catch (err) {
console.error("Error sending message", err);
}
the first to sendMessage functions work perfectly but the third one doesn't, it was working before I don't know why it stopped working

@aderibigbeganiu aderibigbeganiu added the bug Something isn't working label Aug 17, 2024
@trxsistemas
Copy link

I also have the same error.

devlikepro added a commit to devlikeapro/Baileys that referenced this issue Aug 18, 2024
devlikepro added a commit to devlikeapro/Baileys that referenced this issue Aug 18, 2024
@devlikepro
Copy link
Contributor

try this fix #986

@aderibigbeganiu
Copy link
Author

Thank you @devlikepro i'll try this now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants