Open starksemihyarar opened 1 week ago
Describe the bug I am testing with sending about 13-20 image to baileys client, ı got receive 403 for some media downloads
To Reproduce Steps to reproduce the behavior:
Expected behavior download and access all media
` conn.ev.on("messages.upsert", async msg => { try { if (msg.type === "notify") {
for (const m of msg.messages) { var full_file_name = null const messageType = Object.keys (m.message)[0] if (messageType !== 'conversation') { // download the message try { const buffer = await downloadMediaMessage( m, 'buffer', { }, { _0x1dc0c3, // pass this so that baileys can request a reupload of media // that has been deleted reuploadRequest: conn.updateMediaMessage } ) }catch (e) { console.log(e.message) } const filename = "wpclientdownload_pn_" + m.key.remoteJid + "_" + m.key.id +"_"+ generateRandomString(10) const extension = m.message[messageType].mimetype.split("/") full_file_name = filename+'.'+extension[1].split(";")[0] await writeFile('./public/metocrm/'+full_file_name, buffer) } //#END - MEDIA } } } catch (e) { //console.log("ERROR",e) } });
`
output ` Request failed with status code 403 Request failed with status code 403 Request failed with status code 403
Same here
@PurpShell could u help ?
Describe the bug I am testing with sending about 13-20 image to baileys client, ı got receive 403 for some media downloads
To Reproduce Steps to reproduce the behavior:
Expected behavior download and access all media
` conn.ev.on("messages.upsert", async msg => { try { if (msg.type === "notify") {
`
output ` Request failed with status code 403 Request failed with status code 403 Request failed with status code 403
`