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] random error when downloading media #939

Closed
Jaedson-Digiliza opened this issue Jul 24, 2024 · 3 comments
Closed

[BUG] random error when downloading media #939

Jaedson-Digiliza opened this issue Jul 24, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Jaedson-Digiliza
Copy link

Jaedson-Digiliza commented Jul 24, 2024

Describe the bug
Sometimes, some connections cant download one file on "messages.upsert"

error: Error: error:1C800064:Provider routines::bad decrypt
      at Decipheriv.final (node:internal/crypto/cipher:199:29)
      at Transform.final [as _final] (/app/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.js:501:31)
      at callFinal (node:internal/streams/writable:698:12)
      at prefinish (node:internal/streams/writable:710:7)
      at finishMaybe (node:internal/streams/writable:720:5)
      at Writable.end (node:internal/streams/writable:634:5)
      at IncomingMessage.onend (node:internal/streams/readable:748:10)
      at Object.onceWrapper (node:events:631:28)
      at IncomingMessage.emit (node:events:529:35)
      at endReadableNT (node:internal/streams/readable:1400:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    library: 'Provider routines',
    reason: 'bad decrypt',
    code: 'ERR_OSSL_BAD_DECRYPT'
  },

To Reproduce
There is no steps, it occurs randomly

Expected behavior
A clear and concise description of what you expected to happen.

Environment (please complete the following information):

  • Is this on a server? YES, azure
  • What do your connectOptions look like?
makeWASocket({
           logger: loggerBaileys,
           printQRInTerminal: false,
           auth: state as AuthenticationState,
           version,
           msgRetryCounterCache,
           browser: Browsers.macOS("My app"),
           shouldIgnoreJid: jid =>
             isJidBroadcast(jid) || isJidStatusBroadcast(jid),
           getMessage: async key => {
             const msg = await GetWbotMessage(key.id || "");
             return msg?.message ?? undefined;
           }
         })

I'm not using store

  • Do you have multiple clients on the same IP? YES
  • Are you using a proxy? NO

Additional context
i do something like:

try {
media = await downloadMediaMessage();
} catch { 
media = await downloadContentFromMessage()
}
` ``
@Jaedson-Digiliza Jaedson-Digiliza added the bug Something isn't working label Jul 24, 2024
@Jaedson-Digiliza
Copy link
Author

Jaedson-Digiliza commented Jul 29, 2024

@PurpShell any ideia why i'm having this error? I've seen other people report it a long time ago, but no fixes yet

@Jaedson-Digiliza
Copy link
Author

#916
maybe #681

@Jaedson-Digiliza
Copy link
Author

Jaedson-Digiliza commented Aug 6, 2024

error: 2024-08-06T14:21:38.763Z Error: error:1C800064:Provider routines::bad decrypt

still occuring...

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
Development

No branches or pull requests

1 participant